daytime: text, filet, gmt, local, now, time, tm2epoch - time conversions — Inferno 1ed
daytime: text, filet, gmt, local, now, time, tm2epoch - time conversions
include "daytime.m";
daytime:= load Daytime Daytime->PATH;
Tm: adt
{
sec: int;
min: int;
hour: int;
mday: int;
mon: int;
year: int;
wday: int;
yday: int;
zone: string;
tzoff: int;
};
text: fn(tm: ref Tm) : string;
filet: fn(now, file: int): string;
gmt: fn(tim: int) : ref Tm;
local: fn(tim: int) : ref Tm;
now: fn() : int;
time: fn() : string;
tm2epoch: fn(tm: ref Tm) : int;
Description
These routines perform time conversions relative to the epoch 00:00:00 GMT, Jan. 1, 1970.
Caveat
The sign bit of a Limbo integer holding a time will turn on 68 years from the epoch.
|
year=96
|
means 1996
|
|
mday=1
|
means first day of the month
|
|
wday=0
|
means Sunday
|
|
mon=0
|
means January
|
infernosupport@lucent.com Copyright © 1996,Lucent Technologies, Inc. All rights reserved.