Skip to content

getMilliseconds

The getMilliseconds() function returns the milliseconds (0–999) of a TheDate.

Interactive example

Syntax

typescript
function getMilliseconds<
	GenericInput extends TheDate
>(
	input: GenericInput
): number

Parameters

  • input: TheDate value.

Return value

Milliseconds of the date (0–999).

See also

Sources

Released under the MIT license.