docs-v2/content/v2.0/reference/flux/functions/date/quarter.md

543 B

title description menu weight
date.quarter() function The `date.quarter()` function returns the quarter of the year for a specified time. Results range from `[1-4]`.
v2_0_ref
name parent
date.quarter Date
301

The date.quarter() function returns the quarter of the year for a specified time. Results range from [1-4].

Function type: Transformation

import "date"

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

// Returns 3

Parameters

t

The time to operate on.

Data type: Time