Overview  Index  Help 
Standard ML Basis Library

TimeImp


structure TimeImp : TIME =
struct
  open Time
  structure PB = PreBasis
  structure LInt = LargeIntImp
  structure Real = RealImp
  structure Int = IntImp
  structure Int32 = Int32Imp
  structure String = StringImp
  exception Time
  val quot
  val zeroTime : time
  val toSeconds : time -> LargeInt.int
  val fromSeconds : LargeInt.int -> time
  val toMilliseconds : time -> LargeInt.int
  val fromMilliseconds : LargeInt.int -> time
  val toMicroseconds : time -> LargeInt.int
  val fromMicroseconds : LargeInt.int -> time
  val fromReal : real -> time
  val toReal : time -> real
  val now : unit -> time
  val rndv
  val fmt : int -> time -> string
  val scan : (char, 'a) StringCvt.reader -> (time, 'a) StringCvt.reader
  val toString : time -> string
  val fromString : string -> time option
  val + : time * time -> time
  val - : time * time -> time
  val compare : time * time -> order
  val < : time * time -> bool
  val <= : time * time -> bool
  val > : time * time -> bool
  val >= : time * time -> bool
end

       
Value detail

quot

val quot


zeroTime

val zeroTime : time


toSeconds

val toSeconds : time -> LargeInt.int


fromSeconds

val fromSeconds : LargeInt.int -> time


toMilliseconds

val toMilliseconds : time -> LargeInt.int


fromMilliseconds

val fromMilliseconds : LargeInt.int -> time


toMicroseconds

val toMicroseconds : time -> LargeInt.int


fromMicroseconds

val fromMicroseconds : LargeInt.int -> time


fromReal

val fromReal : real -> time


toReal

val toReal : time -> real


now

val now : unit -> time


rndv

val rndv


fmt

val fmt : int -> time -> string


scan

val scan : (char, 'a) StringCvt.reader -> (time, 'a) StringCvt.reader


toString

val toString : time -> string


fromString

val fromString : string -> time option


+

val + : time * time -> time


-

val - : time * time -> time


compare

val compare : time * time -> order


<

val < : time * time -> bool


<=

val <= : time * time -> bool


>

val > : time * time -> bool


>=

val >= : time * time -> bool

 
Exception detail

Time

exception Time


Overview  Index  Help 
Standard ML Basis Library

This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.

Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.

Permission is granted for internet users to make one paper copy for their own personal use. Further hardcopy reproduction is strictly prohibited. Permission to distribute the HTML document electronically on any medium other than the internet must be requested from the copyright holders by contacting the editors. Printed versions of the SML Basis Manual are available from Cambridge University Press. To order, please visit www.cup.org (North America) or www.cup.cam.ac.uk (outside North America).