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

628 B

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

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

Function type: Transformation

import "date"

date.nanosecond(t: 2019-07-17T12:05:21.012934584Z)

// Returns 12934584

Parameters

t

The time to operate on.

Data type: Time