MINUTE

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Returns the minute field from a timestamp or interval. This function is equivalent to EXTRACT(MINUTE FROM ...).

Syntax 

1minute(<timestamp>)
1minute(<interval>)

Arguments 

Required 

  • <timestamp>: The timestamp to extract the minute from.
  • <interval>: The interval to extract the minute from.

Returns 

Returns the minute as an integer.

Examples 

Extract the Minute from a Timestamp 

Get the minute of the hour from a timestamp.

1SELECT minute(timestamp '2001-02-16 20:38:40') AS result;

Returns 38.

Extract the Minute from an Interval 

Get the minute component from an interval.

1SELECT minute(interval '30 minutes') AS result;

Returns 30.

Related Documentation 

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!