toTimestamp
La fonction toTimestamp() retourne le timestamp milliseconde d'un TheDate.
Exemple interactif
Syntaxe
typescript
function toTimestamp<
GenericInput extends TheDate
>(
input: GenericInput
): numberParamètres
input: LeTheDateà convertir.
Valeur de retour
Le timestamp en millisecondes depuis le 1er janvier 1970 UTC.
