Posted By: Neb
Zorro - import diff time zones csv - 02/23/21 15:09
Hi all,
If I have csv price history, which is not UTC time zone, but Chicago or Australia server, does Zorro have posibility to convert it, during import ?
Thanks,
Neb
Posted By: Grat
Re: Zorro - import diff time zones csv - 02/23/21 17:11
I had also this problem. My solution:
import CSV into Python/Pandas
convert timestamp to UTC/GMT
save with new Timezone
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DatetimeIndex.tz_convert.html
df.index = df.index.tz_localize('GMT')
df.index = df.index.tz_convert('America/New_York')
Posted By: AndrewAMD
Re: Zorro - import diff time zones csv - 02/23/21 17:52
What you do is this:
1) Import the CSV to a dataset as you normally would, knowing that the timestamps are in the given timezone.
2) Modify the dataset using dataset functions and time functions, and the Now variable. Detect daylight savings with dst().
https://manual.zorro-project.com/data.htmhttps://manual.zorro-project.com/monthhttps://zorro-project.com/manual/en/date.htm3) Save your dataset to a t6 file with dataSave.
Posted By: Neb
Re: Zorro - import diff time zones csv - 02/28/21 12:23
Hi Grat, AndrewAMD,
Thank you both !
Neb