Skip to content

getMinute ​

The getMinute() function returns the minutes (0–59) of a TheDate, with an optional IANA timezone.

Interactive example ​

Syntax ​

typescript
function getMinute<
	GenericInput extends TheDate | SerializedTheDate
>(
	input: GenericInput,
	timezone: Timezone = "UTC"
): number

Parameters ​

  • input: TheDate or SerializedTheDate.
  • timezone: IANA timezone. Default: "UTC".

Return value ​

Minute (0–59).

See also ​

Sources ​

Released under the MIT license.