now_to_the_second: Function to get current system time at second accuracy.

View source: R/lubridate_supplements.R

now_to_the_secondR Documentation

Function to get current system time at second accuracy.

Description

now_to_the_second floor rounds the current time.

Usage

now_to_the_second(tz = Sys.timezone(), as_numeric = FALSE)

Arguments

tz

Time zone to represent dates in. The default is the system's time zone.

as_numeric

Should the time be returned as the numeric Unix time?

Value

POSIXct or numeric vector with a length of 1.

Author(s)

Stuart K. Grange

See Also

now, Sys.time, floor_date


skgrange/threadr documentation built on April 12, 2025, 10:44 p.m.