public static ZonedDateTime datetimeRaw( long epochSecondUTC, long nano, ZoneId zone ) { return assertValidArgument( () -> ofInstant( ofEpochSecond( epochSecondUTC, nano ), zone ) ); }
public static DateTimeValue datetime( int year, int month, int day, int hour, int minute, int second, int nanoOfSecond, ZoneId zone ) { return new DateTimeValue( assertValidArgument( () -> ZonedDateTime.of( year, month, day, hour, minute, second, nanoOfSecond, zone ) ) ); }
public static DateTimeValue ofEpochMillis( IntegralValue millisUTC ) { return new DateTimeValue( assertValidArgument( () -> ofInstant( ofEpochMilli( millisUTC.longValue() ), UTC ) ) ); }
public static ZonedDateTime datetimeRaw( long epochSecondUTC, long nano, ZoneId zone ) { return assertValidArgument( () -> ofInstant( ofEpochSecond( epochSecondUTC, nano ), zone ) ); }
public static DateTimeValue datetime( int year, int month, int day, int hour, int minute, int second, int nanoOfSecond, ZoneId zone ) { return new DateTimeValue( assertValidArgument( () -> ZonedDateTime.of( year, month, day, hour, minute, second, nanoOfSecond, zone ) ) ); }
public static DateTimeValue ofEpochMillis( IntegralValue millisUTC ) { return new DateTimeValue( assertValidArgument( () -> ofInstant( ofEpochMilli( millisUTC.longValue() ), UTC ) ) ); }