[Blotter-commits] r1320 - in pkg/quantstrat: data inst/tests

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Dec 22 16:17:37 CET 2012


Author: milktrader
Date: 2012-12-22 16:17:36 +0100 (Sat, 22 Dec 2012)
New Revision: 1320

Modified:
   pkg/quantstrat/data/spx.rda
   pkg/quantstrat/inst/tests/blue.R
Log:
changed spx to UTC and capturing user TZ in blue

Modified: pkg/quantstrat/data/spx.rda
===================================================================
(Binary files differ)

Modified: pkg/quantstrat/inst/tests/blue.R
===================================================================
--- pkg/quantstrat/inst/tests/blue.R	2012-12-22 06:56:34 UTC (rev 1319)
+++ pkg/quantstrat/inst/tests/blue.R	2012-12-22 15:17:36 UTC (rev 1320)
@@ -14,14 +14,15 @@
 
 suppressMessages(require(quantstrat))
 
-############################# FIX TIME ZONE #########################
-
-Sys.setenv(TZ="America/New_York")
-
 ###################### LOAD DATA ######################
 
 data('spx')
 
+############### TIMEZONE INIT #########################
+
+local_time = Sys.timezone()
+attr(attr(spx,"index"),"tzone") <- local_time 
+
 ############################# DEFINE VARIABLES ##############################
 
 port          = 'bluePort'



More information about the Blotter-commits mailing list