You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like the way readr uses UTC datetimes consistently. I would like to know if there is a way to get the timezone offset specified in a ISO datetime string after reading it with readr. It seems to me that it gets lost. It would be nice to store it somewhere, maybe as an attribute? In example below, the offset I would like to retrieve is "-06:00" which is the ISO way to express offsets.
If the timezone is provided via locale arg, I can retrieve it by using the function tz_offset() from the non tidyverse package lutz, see example below. However, it seems to me more a workaround than a stable, elegant solution:
I like the way readr uses UTC datetimes consistently. I would like to know if there is a way to get the timezone offset specified in a ISO datetime string after reading it with readr. It seems to me that it gets lost. It would be nice to store it somewhere, maybe as an attribute? In example below, the offset I would like to retrieve is
"-06:00"
which is the ISO way to express offsets.If the timezone is provided via
locale
arg, I can retrieve it by using the function tz_offset() from the non tidyverse package lutz, see example below. However, it seems to me more a workaround than a stable, elegant solution:Both examples created on 2023-02-01 with reprex v2.0.2
I am interested what you think about this. Thanks in advance.
The text was updated successfully, but these errors were encountered: