lucee.Component
    
coldbox.system.async.time.DateTimeHelper
	
	
We represent a static date/time helper 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.  | 
	
			string
		 | 
		
			getIsoTime([any dateTime='[runtime expression]'], [boolean toUTC='true'])
			 Generate an iso8601 formatted string from an incoming date/time object.  | 
	
			any
		 | 
		
			getSystemTimezone()
			 This queries TimeZone.  | 
	
			any
		 | 
		
			getTimezone(any timezone)
			 Get the Java Zone ID of the passed in timezone identifier string.  | 
	
			any
		 | 
		
			parse(any target)
			 Convert an incoming ISO-8601 formatted string to a Java LocalDateTime object.  | 
	
			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
Generate an iso8601 formatted string from an incoming date/time object
dateTime - The input datetime or if not passed, the current date/timetoUTC - By default, we convert all times to UTC for standardizationThis 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 identifierConvert an incoming ISO-8601 formatted string to a Java LocalDateTime object
target - The ISO-8601 formatted stringBuild 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