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
>(
	input: GenericInput,
	timezone?: Timezone
): number

Parameters

  • input: Target TheDate.
  • timezone: Time zone (optional).

Return value

Minute (0–59).

See also

Sources

Released under the MIT license.