Time Library

Previous Page TOC Index Next Page See Page

Mindy Compiler Mindy Debugger Mindy Object Extensions Streams Library Standard IO Print Library Format Library Melange Interface TK Library Collection extensions Table Extensions String extensions Regular Expressions Transcendental Library Time Library Random Library Matrix Library


The Time Library

Designed by the Gwydion Project

1. Introduction

Time is a library of routines for working with time and dates. Time exports two modules:

Time
Time-IO

Note: The Time library is not available on all platforms. At present, it will work only under HP/UX and Microsoft Windows.

2. The Time Module

<universal-time> [Class]

<decoded-time> [Sealed Immutable Class]

<seconds> [Type]
<minutes> [Type]
<hours> [Type]
<day-of-week> [Type]
<day-of-month> [Type]
<month> [Type]
<year> [Type]
<timezone> [Type]

get-universal-time () => universal-time [Function]

get-decoded-time (#key timezone) => decoded-time [Function]

decode-time (universal-time, #key timezone) => decoded-time [Function]

as(<decoded-time>, universal-time) => decoded-time [G.F. Method]

encode-time(decoded-time) => universal-time [Function]

encodable-time?(decoded-time) => boolean [Function]


3. The Time-IO Module

format-time [Function]

(stream, format-string, decoded-time)
=> ()

parse-time [Function]

(input-stream, control-string)
=> decoded-time

            make(<decoded-time>, day-of-week: 0)
           let stream = make(<string-stream>, string: "0");

parse-time(stream, "%w")

4. Parse-Time Directives

%a
%b
%d
%D
%H
%I
%m
%M
%p
%r
%S
%T
%w
%y
%Y
%%

Mindy Compiler Mindy Debugger Mindy Object Extensions Streams Library Standard IO Print Library Format Library Melange Interface TK Library Collection extensions Table Extensions String extensions Regular Expressions Transcendental Library Time Library Random Library Matrix Library

Previous Page TOC Index Next Page See Page

Copyright 1994, 1995, 1996, 1997 Carnegie Mellon University. All rights reserved.

Send comments and bug reports to gwydion-bugs@cs.cmu.edu