Skip to main content

millisecond

Function millisecond 

Source
pub fn millisecond(params: &[Value]) -> NativeResult
Expand description

Returns the millisecond portion of a supplied Datetime as a Value::Number.

  • Declaration: millisecond(datetime: Number): Number

ยงErrors

Will return NativeError::WrongParameterCount if there is a mismatch in the supplied parameters. Will return NativeError::WrongParameterType if the the supplied parameters have the wrong type.