Mercurial > urweb
comparison tests/time.ur @ 437:1a4c1b5f4d8f
Add time to some type classes
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 30 Oct 2008 14:40:42 -0400 |
parents | 024478c34f4d |
children | 1c27f03d9bd2 |
comparison
equal
deleted
inserted
replaced
436:024478c34f4d | 437:1a4c1b5f4d8f |
---|---|
1 val now : time = readError "10/30/08 14:35:42" | 1 val now : time = readError "10/30/08 14:35:42" |
2 val later : time = readError "10/30/08 14:37:42" | |
2 | 3 |
3 fun main () = return <xml>{[now]}</xml> | 4 fun main () = return <xml>{[now]}, {[now = now]}, {[now = later]}, {[later < now]}, {[now < later]}</xml> |