File:  [parser3project] / parser3 / tests / 131.html
Revision 1.4: download - view: text, annotated - select for diffs - revision graph
Tue Sep 22 00:12:33 2015 UTC (10 years, 8 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, release_3_4_4, HEAD
date range checks updated (related to feature #36)

@main[]
^do[3000-01-01]
^date:roll[TZ;EST5]
^show[EST5;^date::create[$dt]]
^do[3000-01-01]

^do[1000-01-01]
^date:roll[TZ;EST5]
^show[EST5;^date::create[$dt]]
^do[1000-01-01]

^date:roll[TZ;UTC]

^do[-1-01-01]
^do[10000-01-01]
^do[9999-12-32]
^do[0]
^do[0-1]
^do[0-0]
^do[0-0-1]
^do[0-0-0]
^do[0-1-1]
^do[0-0-2999999]



@do[s]
[$s]
^try-catch{$caller.dt[^date::create[$s]]^show[$s;$caller.dt]}

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

E-mail: