now_utc: Current time in UTC time zone

Description Usage Arguments Value See Also Examples

View source: R/date-time.R

Description

Returns a vector with the current date and time in the UTC time zone.

Usage

1

Arguments

length

Positive integer (scalar) indicating the length of the returned vector. If length is a vector of multiple elements, only the first element is taken into account.

Value

A POSIXct vector of size length with the tzone attribute set to "UTC".

See Also

Sys.time, lubridate::now

Examples

1
2
now_utc(0)
# returns "POSIXct of length 0"

Nmisc documentation built on April 28, 2021, 5:10 p.m.