docs-v2/content/v2.0/reference/flux/stdlib/date/hour.md

554 B

title description aliases menu weight
date.hour() function The `date.hour()` function returns the hour of a specified time. Results range from `[0-23]`.
/v2.0/reference/flux/functions/date/hour/
v2_0_ref
name parent
date.hour Date
301

The date.hour() function returns the hour of a specified time. Results range from [0-23].

Function type: Transformation

import "date"

date.hour(t: 2019-07-17T12:05:21.012Z)

// Returns 12

Parameters

t

The time to operate on.

Data type: Time