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
What steps will reproduce the problem?
My local timezone is GMT+2. However, I want to use America/Chicago for
subsequent operations. Which works with standard time operations like
Sys.time(). Here is the discrepancy.
> Sys.timezone()
[1] "America/Chicago"
> spy = reqHistoricalData(tws, twsEquity("SPY"), barSize="5 mins",
duration="600 S", tzone="America/Chicago")
TWS Message: 2 -1 2100 API client has been unsubscribed from account data.
waiting for TWS reply on SPY .... done.
> spy
SPY.Open SPY.High SPY.Low SPY.Close SPY.Volume SPY.WAP SPY.hasGaps SPY.Count
2014-08-08 00:40:00 192.22 192.30 192.19 192.26 3793 192.233
0 757
2014-08-08 00:45:00 192.26 192.36 192.19 192.21 4364 192.286
0 743
2014-08-08 00:50:00 192.19 192.27 192.14 192.22 3420 192.211
0 673
> Sys.time()
[1] "2014-08-07 18:54:58.144836 CDT"
> index(spy)
[1] "2014-08-08 00:40:00 CDT" "2014-08-08 00:45:00 CDT" "2014-08-08 00:50:00
CDT"
> spy = reqHistoricalData(tws, twsEquity("SPY"), barSize="5 mins",
duration="600 S")
waiting for TWS reply on SPY .... done.
> spy
SPY.Open SPY.High SPY.Low SPY.Close SPY.Volume SPY.WAP SPY.hasGaps SPY.Count
2014-08-08 00:45:00 192.26 192.36 192.19 192.21 4364 192.286
0 743
2014-08-08 00:50:00 192.19 192.27 192.14 192.18 3898 192.208
0 751
2014-08-08 00:55:00 192.19 192.22 192.13 192.15 2483 192.174
0 445
What is the expected output? What do you see instead?
It seems like you're trying to diff the time, but that doesn't seem to work. I
couldn't find a way to fix this yet.
It seems to think that GMT+1 (?) is equal to America/Chicago. Completely
unexpected at any rate. Somehow time zone information is lost.
> Sys.setenv(TZ="Europe/Istanbul")
> Sys.time()
[1] "2014-08-08 03:01:04.078636 EEST"
What version of the product are you using? On what operating system?
0.9-10 on OS X
Please provide any additional information below.
You can mail me privately if you'd like. Cheers!
Original issue reported on code.google.com by [email protected] on 8 Aug 2014 at 12:01
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 8 Aug 2014 at 12:01The text was updated successfully, but these errors were encountered: