Class ZonedDateTimeUtilities


  • public class ZonedDateTimeUtilities
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.time.ZonedDateTime atCoordinatedUniversalTimeZone​(java.time.LocalDateTime dateTime)  
      static java.time.ZonedDateTime atCoordinatedUniversalTimeZone​(java.time.LocalDateTime localDateTime, java.time.ZoneId zoneId)  
      static java.time.ZonedDateTime atCoordinatedUniversalTimeZone​(java.time.ZonedDateTime zonedDateTime)  
      static java.time.ZonedDateTime atCoordinatedUniversalTimeZone​(java.util.Date value)  
      static java.time.ZonedDateTime atSystemTimeZone​(java.time.LocalDateTime dateTime)  
      static java.time.ZonedDateTime atSystemTimeZone​(java.time.ZonedDateTime zonedDateTime)  
      static java.time.ZonedDateTime atTimeZone​(java.sql.Date date, java.time.ZoneId zone)  
      static java.time.ZonedDateTime atTimeZone​(java.time.ZonedDateTime zonedDateTime, java.time.ZoneId zoneId)  
      static java.time.ZonedDateTime atTimeZone​(java.util.Date date, java.time.ZoneId zone)  
      static java.time.ZonedDateTime atUserTimeZone​(java.time.LocalDateTime dateTime)  
      static java.time.ZonedDateTime atUserTimeZone​(java.time.ZonedDateTime zonedDateTime)  
      static java.time.ZoneId getCoordinatedUniversalTimeZone()  
      static java.time.ZoneId getSystemZone()  
      static java.time.ZoneId getUserZone()  
      static java.util.Date toDate​(java.time.ZonedDateTime dateTime)  
      static java.lang.String toString​(java.time.ZonedDateTime dateTime)  
      static java.time.ZonedDateTime valueOf​(java.lang.String date)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZonedDateTimeUtilities

        public ZonedDateTimeUtilities()
    • 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)