process_time: POSIXct Processing

View source: R/period.R

process_timeR Documentation

POSIXct Processing

Description

Ceiling, Floor and Other operations on a POSIXct object

Usage

process_time(x, second_precision = 3600, method = ceiling, ...)

Arguments

x

a POSIXct vector

second_precision

the precision in seconds on which the processing operates on

method

the method for processing

...

not used

Value

POSIXct object

Author(s)

Alexios Galanos

Examples

# end of hour
process_time(as.POSIXct('2022-08-03 03:00:01', tz = 'UTC'), 3600, method = ceiling)
# start of hour
process_time(as.POSIXct('2022-08-03 03:00:01', tz = 'UTC'), 3600, method = floor)
# end of minute
process_time(as.POSIXct('2022-08-03 03:00:01', tz = 'UTC'), 60, method = ceiling)

tsaux documentation built on April 4, 2025, 3:08 a.m.