getSecond
La fonction getSecond() renvoie les secondes (0–59) d'un TheDate, ajustées par un fuseau horaire optionnel.
Exemple interactif
Syntaxe
typescript
function getSecond<
GenericInput extends TheDate | SerializedTheDate
>(
input: GenericInput,
timezone: Timezone = "UTC"
): numberParamètres
input:TheDateouSerializedTheDate.timezone: Fuseau horaire IANA. Par défaut :"UTC".
Valeur de retour
Secondes entre 0 et 59.
