Java Date Time Java Java API
Class:
java.time.Clock
Method:
public static Clock systemUTC()
Creates a clock that returns the current instant using the best available system clock, converting to the UTC time-zone.
Examples
package com.logicbig.example.clock;
import java.time.Clock;
public class SystemUTCExample {
public static void main(String... args) { Clock c = Clock.systemUTC(); System.out.println(c); } }
OutputSystemClock[Z]
|