File time.icn

Summary


 $Id: time.icn,v 1.6 2006-07-10 13:44:28 rparlett Exp $

 This file is in the public domain.

 Author: Robert Parlett (parlett@dial.pipex.com)

Classes:
Time

Procedures:
get_current_time, init_time, microseconds, milliseconds, month_to_num, sleep

Global variables:
Time_data_base_year, Time_data_months, Time_data_tzchars, Time_data_unix_base_offset, Time_data_week_days

Imports:
lang

This file is part of the util package.

Source code.

Details
Procedures:

get_current_time(z)


 Get the current time as a {Time} object
 @param z an optional {Timezone}.  If omitted, the system timezone is used.


init_time()


 Initialize global data


microseconds()


milliseconds()


 Return the current time of day from the system clock, in milliseconds.


month_to_num(s)


 Convert a month string to an month number, eg "feb"->2


sleep(n)


 Sleep for n milliseconds.  This is for backward compatibility;
 use the built-in function delay() instead.


Global variables:
Time_data_base_year

Time_data_months -- Constant data for time functions

Time_data_tzchars

Time_data_unix_base_offset

Time_data_week_days


This page produced by UniDoc on 2021/04/15 @ 23:59:54.