This version is out of date, covering development from v8.0.0 to v8.x.x. 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 v8 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

Older behaviour

Prior to v8.0.4 it returned not just the minutes element of the interval but the entire interval expressed as minutes. Thus, 1 hour 30 minutes and 15 seconds returns 90.25 and not 30.25 or 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