Skip to contents

Concatenates "timeDate" objects.

Usage

# S3 method for 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] [2023-01-01 16:00:00] [2023-01-01 16:00:00] [2023-02-01 16:00:00]
#>  [4] [2023-02-01 16:00:00] [2023-03-01 16:00:00] [2023-03-01 16:00:00]
#>  [7] [2023-04-01 16:00:00] [2023-04-01 16:00:00] [2023-05-01 16:00:00]
#> [10] [2023-05-01 16:00:00] [2023-06-01 16:00:00] [2023-06-01 16:00:00]
#> [13] [2023-07-01 16:00:00] [2023-07-01 16:00:00] [2023-08-01 16:00:00]
#> [16] [2023-08-01 16:00:00] [2023-09-01 16:00:00] [2023-09-01 16:00:00]
#> [19] [2023-10-01 16:00:00] [2023-10-01 16:00:00] [2023-11-01 16:00:00]
#> [22] [2023-11-01 16:00:00] [2023-12-01 16:00:00] [2023-12-01 16:00:00]
   sort(c(ZUR, GMT))
#> Zurich
#>  [1] [2023-01-01 17:00:00] [2023-01-01 17:00:00] [2023-02-01 17:00:00]
#>  [4] [2023-02-01 17:00:00] [2023-03-01 17:00:00] [2023-03-01 17:00:00]
#>  [7] [2023-04-01 18:00:00] [2023-04-01 18:00:00] [2023-05-01 18:00:00]
#> [10] [2023-05-01 18:00:00] [2023-06-01 18:00:00] [2023-06-01 18:00:00]
#> [13] [2023-07-01 18:00:00] [2023-07-01 18:00:00] [2023-08-01 18:00:00]
#> [16] [2023-08-01 18:00:00] [2023-09-01 18:00:00] [2023-09-01 18:00:00]
#> [19] [2023-10-01 18:00:00] [2023-10-01 18:00:00] [2023-11-01 17:00:00]
#> [22] [2023-11-01 17:00:00] [2023-12-01 17:00:00] [2023-12-01 17:00:00]