Subj : synchronet qwk/rep time z To : MARK FIRESTONE From : Digital Man Date : Fri Feb 11 2005 12:38 pm Re: synchronet qwk/rep time z By: MARK FIRESTONE to ALL on Fri Feb 11 2005 10:43 am > I modified my qwk/rep network code to display the time zone codes (per the > smb specs) on dove.net "echomail"... > > > It works most of the time, with the synchronet codes, like 4ebc (or > whatever... for digit hex) > > > But sometimes I gets stuff like > > > FFFFFFF8A (or whatever...) Is there some documentation on these > "different" codes, or am I missing something obvious... That looks like you're "sign-extending" the 16-bit value to a 32-bit value. The original timezone value would be 0xff8a, which is -118 (decimal). The SMB specification states: "If the zone is in the range -720 to +720, it represents the number of minutes east or west of UT. Values in this range should only be used for time zones not otherwise represented here." -118 is in the range of -720 to +720, so the timezone is 118 minutes west of UT, typically displayed as UTC-1:58 (which is a pretty odd timezone). :-) There's a routine to display a string representation of a timezone in the SMBLIB: http://cvs.synchro.net/cgi-bin/viewcvs.cgi/*checkout*/src/smblib/smbstr.c (see function smb_zonestr). digital man Snapple "Real Fact" #94: Lizards communicate by doing push-ups. .