sequenceOfTimestamps: Create a Sequence of Timestamps

Description Usage Arguments Value Examples

View source: R/step.R

Description

Creates timestamps of mode character between first timestamp from and to with a distance of step.s seconds between the timestamps.

Usage

1
sequenceOfTimestamps(from, to, step.s = 60)

Arguments

from

first timestamp of mode character in ISO-Syntax: yyyy-mm-dd [HH:MM:SS] where the part in brackets is optional.

to

last timestamp of mode character in ISO-Syntax: yyyy-mm-dd [HH:MM:SS] where the part in brackets is optional.

step.s

time step between the timestamps in seconds.

Value

Vector of character timestamps

Examples

1
2
# Create timestamps of January 2011 with five minutes step
sequenceOfTimestamps("2011-01-01 19:00:00", "2011-01-02", 300)

KWB-R/kwb.datetime documentation built on July 9, 2021, 10:28 p.m.