Skip to contents

Concatenates "timeDate" objects.

Usage

# S3 method for class 'timeDate'
c(..., recursive = FALSE)

Arguments

recursive

a logical. If recursive is set to TRUE, the function recursively descends through lists combining all their elements into a vector.

...

arguments passed to other methods.

Value

an object of class "timeDate"

Examples

## timeCalendar
# Create Character Vectors:
GMT = timeCalendar(zone = "GMT", FinCenter = "GMT") + 16*3600
ZUR = timeCalendar(zone = "GMT", FinCenter = "Zurich") + 16*3600
   
## c
# concatenate and replicate timeDate objects
sort(c(GMT, ZUR))
#> GMT
#>  [1] [2026-01-01 16:00:00] [2026-01-01 16:00:00] [2026-02-01 16:00:00]
#>  [4] [2026-02-01 16:00:00] [2026-03-01 16:00:00] [2026-03-01 16:00:00]
#>  [7] [2026-04-01 16:00:00] [2026-04-01 16:00:00] [2026-05-01 16:00:00]
#> [10] [2026-05-01 16:00:00] [2026-06-01 16:00:00] [2026-06-01 16:00:00]
#> [13] [2026-07-01 16:00:00] [2026-07-01 16:00:00] [2026-08-01 16:00:00]
#> [16] [2026-08-01 16:00:00] [2026-09-01 16:00:00] [2026-09-01 16:00:00]
#> [19] [2026-10-01 16:00:00] [2026-10-01 16:00:00] [2026-11-01 16:00:00]
#> [22] [2026-11-01 16:00:00] [2026-12-01 16:00:00] [2026-12-01 16:00:00]
sort(c(ZUR, GMT))
#> Zurich
#>  [1] [2026-01-01 17:00:00] [2026-01-01 17:00:00] [2026-02-01 17:00:00]
#>  [4] [2026-02-01 17:00:00] [2026-03-01 17:00:00] [2026-03-01 17:00:00]
#>  [7] [2026-04-01 18:00:00] [2026-04-01 18:00:00] [2026-05-01 18:00:00]
#> [10] [2026-05-01 18:00:00] [2026-06-01 18:00:00] [2026-06-01 18:00:00]
#> [13] [2026-07-01 18:00:00] [2026-07-01 18:00:00] [2026-08-01 18:00:00]
#> [16] [2026-08-01 18:00:00] [2026-09-01 18:00:00] [2026-09-01 18:00:00]
#> [19] [2026-10-01 18:00:00] [2026-10-01 18:00:00] [2026-11-01 17:00:00]
#> [22] [2026-11-01 17:00:00] [2026-12-01 17:00:00] [2026-12-01 17:00:00]