dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Intermediate
May 28, 2019

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Get the UTC Machine Time in Java

Beginning with JDK 8, the machine UTC timestamp with nanoseconds precision can be obtained via the java.time.Instant class as below:

// e.g., 2019-02-26T15:28:21.051163100Z
Instant now = Instant.now(); 
Octavia Anghel
 
Thanks for your registration, follow us on our social networks to keep up-to-date