Class ZonedDateTimeUtilities
- java.lang.Object
-
- net.anwiba.commons.utilities.time.ZonedDateTimeUtilities
-
public class ZonedDateTimeUtilities extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ZonedDateTimeUtilities()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.time.ZonedDateTimeatCoordinatedUniversalTimeZone(java.time.LocalDateTime dateTime)static java.time.ZonedDateTimeatCoordinatedUniversalTimeZone(java.time.LocalDateTime localDateTime, java.time.ZoneId zoneId)static java.time.ZonedDateTimeatCoordinatedUniversalTimeZone(java.time.ZonedDateTime zonedDateTime)static java.time.ZonedDateTimeatCoordinatedUniversalTimeZone(java.util.Date value)static java.time.ZonedDateTimeatSystemTimeZone(java.time.LocalDateTime dateTime)static java.time.ZonedDateTimeatSystemTimeZone(java.time.ZonedDateTime zonedDateTime)static java.time.ZonedDateTimeatTimeZone(java.sql.Date date, java.time.ZoneId zone)static java.time.ZonedDateTimeatTimeZone(java.time.ZonedDateTime zonedDateTime, java.time.ZoneId zoneId)static java.time.ZonedDateTimeatTimeZone(java.util.Date date, java.time.ZoneId zone)static java.time.ZonedDateTimeatUserTimeZone(java.time.LocalDateTime dateTime)static java.time.ZonedDateTimeatUserTimeZone(java.time.ZonedDateTime zonedDateTime)static java.time.ZoneIdgetCoordinatedUniversalTimeZone()static java.time.ZoneIdgetSystemZone()static java.time.ZoneIdgetUserZone()static java.util.DatetoDate(java.time.ZonedDateTime dateTime)static java.lang.StringtoString(java.time.ZonedDateTime dateTime)static java.time.ZonedDateTimevalueOf(java.lang.String date)
-
-
-
Method Detail
-
atTimeZone
public static java.time.ZonedDateTime atTimeZone(java.sql.Date date, java.time.ZoneId zone)
-
atTimeZone
public static java.time.ZonedDateTime atTimeZone(java.util.Date date, java.time.ZoneId zone)
-
atTimeZone
public static java.time.ZonedDateTime atTimeZone(java.time.ZonedDateTime zonedDateTime, java.time.ZoneId zoneId)
-
atCoordinatedUniversalTimeZone
public static java.time.ZonedDateTime atCoordinatedUniversalTimeZone(java.util.Date value)
-
atCoordinatedUniversalTimeZone
public static java.time.ZonedDateTime atCoordinatedUniversalTimeZone(java.time.LocalDateTime localDateTime, java.time.ZoneId zoneId)
-
atCoordinatedUniversalTimeZone
public static java.time.ZonedDateTime atCoordinatedUniversalTimeZone(java.time.ZonedDateTime zonedDateTime)
-
atSystemTimeZone
public static java.time.ZonedDateTime atSystemTimeZone(java.time.ZonedDateTime zonedDateTime)
-
atUserTimeZone
public static java.time.ZonedDateTime atUserTimeZone(java.time.ZonedDateTime zonedDateTime)
-
atUserTimeZone
public static java.time.ZonedDateTime atUserTimeZone(java.time.LocalDateTime dateTime)
-
atCoordinatedUniversalTimeZone
public static java.time.ZonedDateTime atCoordinatedUniversalTimeZone(java.time.LocalDateTime dateTime)
-
atSystemTimeZone
public static java.time.ZonedDateTime atSystemTimeZone(java.time.LocalDateTime dateTime)
-
getUserZone
public static java.time.ZoneId getUserZone()
-
getSystemZone
public static java.time.ZoneId getSystemZone()
-
getCoordinatedUniversalTimeZone
public static java.time.ZoneId getCoordinatedUniversalTimeZone()
-
toDate
public static java.util.Date toDate(java.time.ZonedDateTime dateTime)
-
toString
public static java.lang.String toString(java.time.ZonedDateTime dateTime)
-
valueOf
public static java.time.ZonedDateTime valueOf(java.lang.String date)
-
-