<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Just a note that the following are both duplicated and slightly buggy:<BR>
<BR>
<BR>C:\dev2\cm3.2\m3-mail\postcard\src\UtimeExtra.i3<BR>C:\dev2\cm3.2\m3-mail\postcard\src\OSUtils.m3<BR>C:\dev2\cm3.2\m3-mail\postcard\src\OSUtils.i3<BR>C:\dev2\cm3.2\m3-mail\webcard\src\UtimeExtra.i3<BR>C:\dev2\cm3.2\m3-mail\webcard\src\OSUtils.m3<BR>C:\dev2\cm3.2\m3-mail\webcard\src\OSUtils.i3<BR>
<BR>
<BR>The copies are identical.<BR>
<BR>
<BR>UtimeExtra.i3:<BR>
(* The declaration of struct_tm in Utime omits "gmtoff"; mktime isn there<BR> at all. *)<BR>
TYPE<BR> struct_tm = RECORD<BR> tm_sec: int; (* seconds (0 - 59) *)<BR> tm_min: int; (* minutes (0 - 59) *)<BR> tm_hour: int; (* hours (0 - 23) *)<BR> tm_mday: int; (* day of month (1 - 31) *)<BR> tm_mon: int; (* month of year (0 - 11) *)<BR> tm_year: int; (* year - 1900 *)<BR> tm_wday: int; (* day of week (Sunday = 0) *)<BR> tm_yday: int; (* day of year (0 - 365) *)<BR> tm_isdst: int; (* flag: daylight savings time in effect *)<BR> tm_gmtoff: long; (* offset from GMT in seconds *)<BR> tm_zone: char_star;(* abbreviation of timezone name *)<BR> END;<BR>
struct_tm_star = UNTRACED REF struct_tm;<BR>
<*EXTERNAL*> PROCEDURE localtime (clock: long_star): struct_tm_star;<BR><*EXTERNAL*> PROCEDURE gmtime (clock: long_star): struct_tm_star;<BR><*EXTERNAL*> PROCEDURE mktime (VAR tm: struct_tm): long;<BR>
<BR> <BR>
gmtoff is omitted deliberately, because it isn't always there.<BR>e.g. on Cygwin, Solaris, Interix, Posix.<BR>
They are #ifed on Linux -- they are there.<BR>
<BR>
<BR>I don't believe the order of the fields is guaranteed either, but<BR>everything I looked at has them the same.<BR>
<BR>
<BR> - Jay<BR> </body>
</html>