File:  [parser3project] / parser3 / tests / 274.html
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Sun Nov 26 16:03:56 2023 UTC (2 years, 7 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, HEAD
tests for date double, int, bool added (related to feature #1235)

@main[][n;d;d2]
$n[^date::now[]]
$d[^date::today[]]
^if($n.year == $d.year && $n.month == $d.month && $n.day == $d.day && $d.hour == 0 && $d.minute == 0 && $d.second == 0){OK}{Failed}

<hr />

$d2[^date::create(2000;02;29;01;23;45)]
^d2.sql-string[]<br />
^d2.sql-string[datetime]<br />
^d2.sql-string[date]<br />
^d2.sql-string[time]<br />

<hr />

^d2.double[]
^d2.int[]
^eval(^d2.bool[]*1)

^try-catch{ ^d2.sql-string[hren] }

E-mail: