KADABRA API

LARA API

LARA Common Language API

(.js)
laraImport("lara.units.TimeUnit");

(.lara)
import lara.units.TimeUnit;

TimeUnit

Constructor

TimeUnit

new TimeUnit(timeModifier)

Parameters

timeModifier: lara.units.TimeModifier

Static Members

day

day()

hour

hour()

micro

micro()

milli

milli()

minute

minute()

nano

nano()

Factory methods to create TimeUnits.


second

second()

Instance Members

convert

convert(value, unit)

Override that adds support to time-specific units (days, hours, minutes). Discards parameter 'unitHasBaseName'.

Parameters

value: any
unit: any