SML# Document Version 4.0.0
26.10 DATE
Provide date data structures and their primitives.
signature DATE = sig datatype weekday = Mon | Tue | Wed | Thu | Fri | Sat | Sun datatype month = Jan | Feb | Mar | Apr | May | Jun | Jul | Aug | Sep | Oct | Nov | Dec type date exception Date val compare : date * date -> order val date : {year : int, month : month, day : int, hour : int, minute : int, second : int, offset : Time.time option} -> date val day : date -> int val fmt : string -> date -> string val fromString : string -> date option val fromTimeLocal : Time.time -> date val fromTimeUniv : Time.time -> date val hour : date -> int val isDst : date -> bool option val localOffset : unit -> Time.time val minute : date -> int val month : date -> month val offset : date -> Time.time option val scan : (char, ’a) StringCvt.reader -> (date, ’a) StringCvt.reader val second : date -> int val toString : date -> string val toTime : date -> Time.time val weekDay : date -> weekday val year : date -> int val yearDay : date -> int end
Structures that implement the signature
-
•
Date :> DATE
type date (= boxed)