Skip to content

getMilliseconds ​

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

Interactive example ​

Syntax ​

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

Parameters ​

  • input: TheDate or SerializedTheDate.

Return value ​

Milliseconds of the date (0–999).

See also ​

Sources ​

Released under the MIT license.