Package csw.time.core
Class TMTTimeHelper$
- java.lang.Object
-
- csw.time.core.TMTTimeHelper$
-
public class TMTTimeHelper$ extends java.lang.Object
This API allows users to get a representation ofTMTTime
in 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.ZonedDateTime
atHawaii(TMTTime tmtTime)
Combines theTMTTime
with the Hawaii timezone to get ajava.time.ZonedDateTime
.java.time.ZonedDateTime
atLocal(TMTTime tmtTime)
Combines theTMTTime
with the Local timezone to get ajava.time.ZonedDateTime
.java.time.ZonedDateTime
atZone(TMTTime tmtTime, java.time.ZoneId zoneId)
java.time.ZonedDateTime
toZonedDateTime(TMTTime tmtTime)
Converts theTMTTime
instance tojava.time.ZonedDateTime
by 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 theTMTTime
with 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 theTMTTime
with the Hawaii timezone to get ajava.time.ZonedDateTime
.- Parameters:
tmtTime
- (undocumented)- Returns:
- time at the Hawaii-Aleutian Standard Time (HST) zone
-
-