Millisecond Procedure

Returns the millisecond component of a time.

Overload #1: Millisecond(dateTime)

Declaration
function Millisecond(dateTime as DateTime) as Number

Parameters

Return value

Number — The millisecond component of the time.

Example

Code
dim x = DateTimeFromParts(2021, 3, 12, 14, 30, 59, 488)
print Millisecond(x)
Output
488

Overload #2: Millisecond(dateTimeOffset)

Declaration
function Millisecond(dateTimeOffset as DateTimeOffset) as Number

Parameters

Return value

Number — The millisecond component of the time.

Example

Code
dim x = DateTimeOffsetFromParts(2021, 3, 12, 4, 30, 59, 488, Hours(-4))
print Millisecond(x)
Output
488