java.time.OffsetDateTime.now(Clock clock)


java.time.OffsetDateTime.now(Clock clock)

package com.codingdict;

import java.time.Clock;
import java.time.OffsetDateTime;

public class OffsetDateTimeDemo {
   public static void main(String[] args) {

      OffsetDateTime date = OffsetDateTime.now(Clock.systemUTC());
      System.out.println(date);  
   }
}