Package csw.time.core
Class TMTTimeHelper$
- java.lang.Object
-
- csw.time.core.TMTTimeHelper$
-
public class TMTTimeHelper$ extends java.lang.ObjectThis API allows users to get a representation ofTMTTimein a specific Time Zone, returned as ajava.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.ZonedDateTimeatHawaii(TMTTime tmtTime)Combines theTMTTimewith the Hawaii timezone to get ajava.time.ZonedDateTime.java.time.ZonedDateTimeatLocal(TMTTime tmtTime)Combines theTMTTimewith the Local timezone to get ajava.time.ZonedDateTime.java.time.ZonedDateTimeatZone(TMTTime tmtTime, java.time.ZoneId zoneId)java.time.ZonedDateTimetoZonedDateTime(TMTTime tmtTime)Converts theTMTTimeinstance tojava.time.ZonedDateTimeby adding 0 offset of UTC timezone.
-
-
-
Field Detail
-
MODULE$
public static final TMTTimeHelper$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
atZone
public java.time.ZonedDateTime atZone(TMTTime tmtTime, java.time.ZoneId zoneId)
- Parameters:
zoneId- id of the required zonetmtTime- (undocumented)- Returns:
- time at the given zone
-
atLocal
public java.time.ZonedDateTime atLocal(TMTTime tmtTime)
Combines theTMTTimewith the Local timezone to get ajava.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 theTMTTimewith the Hawaii timezone to get ajava.time.ZonedDateTime.- Parameters:
tmtTime- (undocumented)- Returns:
- time at the Hawaii-Aleutian Standard Time (HST) zone
-
-