Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions code/common/timezone.q
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ gd:gl[default]
\
\d .
/ To recreate tzinfo from tzinfo.csv
t:("SPJJ";enlist ",")0:`:tzinfo.csv;
update gmtOffset:`timespan$1000000000*gmtOffset,dstOffset:`timespan$1000000000*dstOffset from `t;
update adjustment:gmtOffset+dstOffset from `t;
update localDateTime:gmtDateTime+adjustment from `t;
`gmtDateTime xasc `t;
update `g#timezoneID from `t;
t:("SPJ";enlist ",")0:`:tzinfo.csv;
t: delete offset from update adjustment:`timespan$1000000000*offset from t;
t: update localDateTime:gmtDateTime+adjustment from t;
t: `gmtDateTime xasc t;
t: update `g#timezoneID from t;
`:tzinfo set t; / save file for easy distribution
Binary file modified config/tzinfo
Binary file not shown.