lucee.Componentwirebox.system.async.time.ChronoUnit
We represent a chrono unit class that assists with time units on date/time conversions It doesn't hold any date/time information.
Method Summary | |
---|---|
Duration
|
duration()
Build out a new Duration class. |
any
|
getSystemTimezone()
This queries TimeZone. |
any
|
getTimezone(any timezone)
Get the Java Zone ID of the passed in timezone identifier string. |
Period
|
period()
Build out a new Period class. |
any
|
toInstant(any target)
Convert any ColdFusion date/time or string date/time object to a Java instant temporal object. |
any
|
toJavaDate(any target)
Convert any date/time or string date/time object to a Java Date/Time. |
any
|
toLocalDate(any target, [any timezone])
Convert any ColdFUsion date/time or string date/time object to the new Java. |
any
|
toLocalDateTime(any target, [any timezone])
Convert any ColdFUsion date/time or string date/time object to the new Java. |
Methods inherited from class lucee.Component |
---|
None |
Method Detail |
---|
Build out a new Duration class
This queries TimeZone.getDefault() to find the default time-zone and converts it to a ZoneId. If the system default time-zone is changed, then the result of this method will also change.
Get the Java Zone ID of the passed in timezone identifier string
timezone
- The String timezone identifierBuild out a new Period class
Convert any ColdFusion date/time or string date/time object to a Java instant temporal object
target
- The date/time or string object representing the date/timeConvert any date/time or string date/time object to a Java Date/Time
target
- The date/time or string object representing the date/timeConvert any ColdFUsion date/time or string date/time object to the new Java.time.LocalDate class so we can use them as Temporal objects
target
- The cf date/time or string object representing the date/timetimezone
- If passed, we will use this timezone to build the temporal object. Else we default to UTCConvert any ColdFUsion date/time or string date/time object to the new Java.time.LocalDateTime class so we can use them as Temporal objects
target
- The cf date/time or string object representing the date/timetimezone
- If passed, we will use this timezone to build the temporal object. Else we default to UTC