Package csw.time.core

Class TMTTimeHelper$


  • public class TMTTimeHelper$
    extends java.lang.Object
    This API allows users to get a representation of TMTTime in a specific Time Zone, returned as a java.time.ZonedDateTime.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static TMTTimeHelper$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      TMTTimeHelper$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.ZonedDateTime atHawaii​(TMTTime tmtTime)
      Combines the TMTTime with the Hawaii timezone to get a java.time.ZonedDateTime.
      java.time.ZonedDateTime atLocal​(TMTTime tmtTime)
      Combines the TMTTime with the Local timezone to get a java.time.ZonedDateTime.
      java.time.ZonedDateTime atZone​(TMTTime tmtTime, java.time.ZoneId zoneId)
      Combines the TMTTime with the given timezone to get a java.time.ZonedDateTime
      java.time.ZonedDateTime toZonedDateTime​(TMTTime tmtTime)
      Converts the TMTTime instance to java.time.ZonedDateTime by adding 0 offset of UTC timezone.
      • Methods inherited from class java.lang.Object

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

      • MODULE$

        public static final TMTTimeHelper$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • TMTTimeHelper$

        public TMTTimeHelper$()
    • Method Detail

      • atZone

        public java.time.ZonedDateTime atZone​(TMTTime tmtTime,
                                              java.time.ZoneId zoneId)
        Combines the TMTTime with the given timezone to get a java.time.ZonedDateTime

        Parameters:
        zoneId - id of the required zone
        tmtTime - (undocumented)
        Returns:
        time at the given zone
      • atLocal

        public java.time.ZonedDateTime atLocal​(TMTTime tmtTime)
        Combines the TMTTime with the Local timezone to get a java.time.ZonedDateTime. Local timezone is the system's default timezone.

        Parameters:
        tmtTime - (undocumented)
        Returns:
        time at the Local zone
      • atHawaii

        public java.time.ZonedDateTime atHawaii​(TMTTime tmtTime)
        Combines the TMTTime with the Hawaii timezone to get a java.time.ZonedDateTime.

        Parameters:
        tmtTime - (undocumented)
        Returns:
        time at the Hawaii-Aleutian Standard Time (HST) zone
      • toZonedDateTime

        public java.time.ZonedDateTime toZonedDateTime​(TMTTime tmtTime)
        Converts the TMTTime instance to java.time.ZonedDateTime by adding 0 offset of UTC timezone.

        Parameters:
        tmtTime - (undocumented)
        Returns:
        zoned representation of the TMTTime