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

Interval.minute


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Property   [other Property type actions]

 Item   [operators of similar scope]

 Date-time   [other Date-time operators]

 Baseline

 


$MyInterval.minute

Returns the Interval expressed as a Number of whole or partial minutes within the current hour (ignoring whole hours). Thus, if $MyInterval is 1 hour, 30 minutes and 15 seconds then:

$MyNumber = $MyInterval.minute; 

returns 30

If $MyInterval is 1 hour, 30 minutes and 15 seconds then:

$MyNumber = $MyInterval.minute 

returns 90.25

To get an integer value, i.e. whole minutes, use either Number.precision() or floor(), thus:

$MyNumber = $MyInterval.minute.precision(0); 

returns 90

$MyNumber = floor($MyInterval.minute); 

returns 90