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

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

# Create timestamps of January 2011 with five minutes step sequenceOfTimestamps("2011-01-01 19:00:00", "2011-01-02", 300)
#> [1] "2011-01-01 19:00:00" "2011-01-01 19:05:00" "2011-01-01 19:10:00" #> [4] "2011-01-01 19:15:00" "2011-01-01 19:20:00" "2011-01-01 19:25:00" #> [7] "2011-01-01 19:30:00" "2011-01-01 19:35:00" "2011-01-01 19:40:00" #> [10] "2011-01-01 19:45:00" "2011-01-01 19:50:00" "2011-01-01 19:55:00" #> [13] "2011-01-01 20:00:00" "2011-01-01 20:05:00" "2011-01-01 20:10:00" #> [16] "2011-01-01 20:15:00" "2011-01-01 20:20:00" "2011-01-01 20:25:00" #> [19] "2011-01-01 20:30:00" "2011-01-01 20:35:00" "2011-01-01 20:40:00" #> [22] "2011-01-01 20:45:00" "2011-01-01 20:50:00" "2011-01-01 20:55:00" #> [25] "2011-01-01 21:00:00" "2011-01-01 21:05:00" "2011-01-01 21:10:00" #> [28] "2011-01-01 21:15:00" "2011-01-01 21:20:00" "2011-01-01 21:25:00" #> [31] "2011-01-01 21:30:00" "2011-01-01 21:35:00" "2011-01-01 21:40:00" #> [34] "2011-01-01 21:45:00" "2011-01-01 21:50:00" "2011-01-01 21:55:00" #> [37] "2011-01-01 22:00:00" "2011-01-01 22:05:00" "2011-01-01 22:10:00" #> [40] "2011-01-01 22:15:00" "2011-01-01 22:20:00" "2011-01-01 22:25:00" #> [43] "2011-01-01 22:30:00" "2011-01-01 22:35:00" "2011-01-01 22:40:00" #> [46] "2011-01-01 22:45:00" "2011-01-01 22:50:00" "2011-01-01 22:55:00" #> [49] "2011-01-01 23:00:00" "2011-01-01 23:05:00" "2011-01-01 23:10:00" #> [52] "2011-01-01 23:15:00" "2011-01-01 23:20:00" "2011-01-01 23:25:00" #> [55] "2011-01-01 23:30:00" "2011-01-01 23:35:00" "2011-01-01 23:40:00" #> [58] "2011-01-01 23:45:00" "2011-01-01 23:50:00" "2011-01-01 23:55:00" #> [61] "2011-01-02 00:00:00"