This version is out of date, covering development from v9.0.0 to v9.3.0. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

time(theDate)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Date-time   [other Date-time operators]

 Baseline

 9.3.0


time(theDate)

returns a string of the hours/minutes time part the theDate date/time expression, which may simply be a date-type attribute value. For instance:

$MyString = time($StartDate); 

If the time of $StartTime is 14:20 then $MyString will be "14:20". Passing to a string will elide leading zeroes, so a time of 05:08 will return "5:08".

To get seconds as well as hours and minutes, use the .format() or format() operator on theDate with an appropriate formatting string.

From v9.3.0, the time() operator no longer ignores seconds in the source data.