Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sanitize time zones in DB and R #27

Open
balazsdukai opened this issue Aug 28, 2017 · 0 comments
Open

sanitize time zones in DB and R #27

balazsdukai opened this issue Aug 28, 2017 · 0 comments
Milestone

Comments

@balazsdukai
Copy link
Member

Currently POSIXct class is used, because of the ltraj compatibility. But accurately tracking time zones in the database and in R is important. See

> t1 <- as.POSIXct(strptime("2003-06-01", "%Y-%m-%d", tz = "Europe/Paris"))
> attributes(t1)
$class
[1] "POSIXct" "POSIXt" 

$tzone
[1] "Europe/Paris"

> t1 <- as.POSIXlt(strptime("2003-06-01", "%Y-%m-%d", tz = "Europe/Paris"))
> attributes(t1)
$names
 [1] "sec"    "min"    "hour"   "mday"   "mon"    "year"   "wday"   "yday"   "isdst"  "zone"   "gmtoff"

$class
[1] "POSIXlt" "POSIXt" 

$tzone
[1] "Europe/Paris" "CET"          "CEST" 
@balazsdukai balazsdukai added this to the v1.0.0 milestone Aug 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant