Mercurial > urweb
view tests/sqliteTime.ur @ 1449:0982f0242776
Remove commented-out readUtc code; add back indeterminate tm_isdst
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Fri, 15 Apr 2011 16:49:46 -0400 |
parents | 703c2c94afd5 |
children |
line wrap: on
line source
table dates : { Date : time } fun aform () = let val a : time = readError "01/02/03 04:06:07" in dml(INSERT INTO dates (Date) VALUES ({[a]})); ds <- queryX (SELECT * FROM dates) (fn r => <xml>{[r.Dates.Date]}<br/></xml>); return <xml><body>{ds}</body></xml> end fun main () = return <xml><body><form><submit action={aform}/></form></body></xml>