Perhaps this is intentional, but it strikes me as unexpected:
library(lubridate)
#>
#> Attaching package: 'lubridate'
#> The following object is masked from 'package:base':
#>
#> date
tz(today())
#> [1] "UTC"
tz(force_tz(today(), "America/New_York"))
#> [1] "UTC"
tz(with_tz(today(), "America/New_York"))
#> [1] "America/New_York"
Latest Github version, 1.7.4.
In general, timezones for pure Dates seem to be discouraged in that virtually no lubridate functions will ever return a non-UTC date (e.g. today, as_date, date, etc.), but I can't find anything to this effect in the docs.
Perhaps this is intentional, but it strikes me as unexpected:
Latest Github version, 1.7.4.
In general, timezones for pure
Dates seem to be discouraged in that virtually no lubridate functions will ever return a non-UTC date (e.g.today,as_date,date, etc.), but I can't find anything to this effect in the docs.