Function CurrentToMoment(Unit, ReferenceDate)

CurrentToMoment

The function CurrentToMoment converts the current time to the elapsed time with respect to a specific reference date.

CurrentToMoment(
     Unit,                    ! (input) a time unit
     ReferenceDate            ! (input) a string expression
     )

Arguments

Unit

The time unit that is used to return the elapsed time.

ReferenceDate

A string that holds the begin date using the fixed format for date and time, see paragraph Reference date format of the Language Reference.

Return Value

The result of CurrentToMoment is the elapsed time in Unit since ReferenceDate.

See also