This function is a wrapper for range(monitor$data$datetime) and is convenient for use in data pipelines.

Dates will be returned in the timezone associated with monitor$data$datetime which is typically "UTC" unless timezone is specified.

monitor_timeRange(monitor = NULL, timezone = NULL)

Arguments

monitor

mts_monitor object.

timezone

Olson timezone for the returned dates.

Value

A vector containing the minimum and maximum times of a mts_monitor object.

Examples

Carmel_Valley %>%
  monitor_timeRange(timezone = "America/Los_Angeles")
#> [1] "2016-07-22 00:00:00 PDT" "2016-08-14 23:00:00 PDT"