if (inherits(x, "POSIXct") && identical(attr(x, "tzone", exact = TRUE), "UTC"))
However, if 'tzone' attribute is missing and Sys.timezone() is UTC (actually, %chin% c('GMT', 'UTC', 'Etc/UTC', 'Etc/GMT', 'GMT-0', 'GMT+0', 'GMT0') is fine), we can do the same shortcut
The text was updated successfully, but these errors were encountered:
Currently we test:
However, if
'tzone'
attribute is missing andSys.timezone()
is UTC (actually,%chin% c('GMT', 'UTC', 'Etc/UTC', 'Etc/GMT', 'GMT-0', 'GMT+0', 'GMT0')
is fine), we can do the same shortcutThe text was updated successfully, but these errors were encountered: