comparison lib/ur/datetime.urs @ 1972:56c68443cb9d

Basic datetime library.
author Patrick Hurst <phurst@mit.edu>
date Thu, 05 Dec 2013 11:36:46 -0500
parents
children 155bd0bc4d28
comparison
equal deleted inserted replaced
1971:1e360ea06a09 1972:56c68443cb9d
1 type datetime = { Year : int,
2 Month : int,
3 Day : int,
4 Hour : int,
5 Minute : int,
6 Second : int
7 }
8
9 val toTime : datetime -> time
10 val fromTime : time -> datetime
11 val datetimef : string -> datetime -> string
12 val now : transaction datetime