Returns all timezone transitions (e.g., daylight saving time changes) that occur between two datetimes. The timezone is taken from the start datetime.
Examples
# Get all DST transitions in 2024 for New York
tz_transitions(
as.POSIXct("2024-01-01", tz = "America/New_York"),
as.POSIXct("2024-12-31", tz = "America/New_York")
)
#> [1] time offset_before offset_after
#> <0 rows> (or 0-length row.names)