File:  [parser3project] / parser3 / tests / 327.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Wed Mar 30 19:46:54 2016 UTC (10 years, 2 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, HEAD
test for TZ specification in ^date::create[], TZ is kept during ^date::create[$dt] (related to feature #1048)

@main[]

$dt[^date::create(2100;01;01;10;10;10)[EST5]]
^show[EST5;$dt]
$copy[^date::create[$dt]]
^show[copy;$copy]
^copy.roll[TZ;UTC]
^show[UTC;$copy]
^dt.roll[TZ;]
$msk[^date::create[$dt]]
^show[msk;$msk]

@show[s;dt]
[$s] timestamp:  ^dt.unix-timestamp[]
[$s] sql-string: ^dt.sql-string[] $dt.TZ
[$s] iso-string: ^dt.iso-string[]

E-mail: