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

570 B

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

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

Function type: Transformation

import "date"

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

// Returns 21

Parameters

t

The time to operate on.

Data type: Time