プログラミング言語SML#解説 4.1.0版
26.37 TIME
時刻データ型とプリミティブ演算を提供.
signature TIME = sig eqtype time exception Time val + : time * time -> time val - : time * time -> time val < : time * time -> bool val <= : time * time -> bool val > : time * time -> bool val >= : time * time -> bool val compare : time * time -> order val fmt : int -> time -> string val fromMicroseconds : LargeInt.int -> time val fromMilliseconds : LargeInt.int -> time val fromNanoseconds : LargeInt.int -> time val fromReal : LargeReal.real -> time val fromSeconds : LargeInt.int -> time val fromString : string -> time option val now : unit -> time val scan : (char, ’a) StringCvt.reader -> (time, ’a) StringCvt.reader val toMicroseconds : time -> LargeInt.int val toMilliseconds : time -> LargeInt.int val toNanoseconds : time -> LargeInt.int val toReal : time -> LargeReal.real val toSeconds : time -> LargeInt.int val toString : time -> string val zeroTime : time end
シグネチャを実装するストラクチャ
-
•
Time :> TIME
type time (= real)