SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-Programming Mailing List Archives

Return to [ 05 | April | 2004 ]

<< Previous Message << >> Next Message >>


Date: Mon, 5 Apr 2004 08:56:47 PDT7
From: "Steven Levine" <steve53@earthlink.net >
Reply-To: scoug-programming@scoug.com
To: scoug-programming@scoug.com
Subject: SCOUG-Programming: SCOUG Server - time restamp on messages (was: doesn't like TZ variable)

In <4071620D.578F@peterskye.com>, on 04/05/04
at 06:41 AM, Peter Skye said:

>Thanks, I didn't realize Steward was distributed with the date-time
>restamp code. The code you found appears three different times in
>Steward's Message.cmd file.

It may also appear in the other .cmd files. I didn't check.

>-- 1) remove the date-time restamping (there might be a setup option in
>the InetMail notebook to do this), or

I doubt there is an option. The code I looked at contains no option
checking logic.

>-- 2) write a Rexx routine that returns the current time zone in an
>SMTP-compliant format

I don't understand why you feel you need this. Are you really saying you
need a routine that converts the original timestamp to SCOUG's local
timezone?

>cannot easily determine if you are currently operating under Daylight
>Saving or not. And if the TZ string does not contain the additional
>eight fields then no Daylight Saving interpretation can be done.

Does the TZ spec say that or does is say that without the defaults you are
supposed to assume standard values?

>There is no "Daylight Saving" flag that I'm aware of in either OS/2 or
>the Workplace Shell which can be referred to.

This is typically determined dynamically based on the current TZ setting.
It has to be done that way because each process may run under a different
TZ setting.

>The only trustworthy determination method I can think of is to access a
>time server (NTP), compare the returned value to the local clock time,

You could do this. A more efficient solution would be to do the math
locally. Every runtime I know of has logic to convert timestampts to
normalized structures that contain a DST flag. I have access to OREXX
code with this logic. This can be converted to Classic REXX, it's
possible I can track down some existing Classic REXX code.

You might want to check Rexx Tips and Tricks for source code.

Steven

--
----------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.41 #10183 Warp4/FP15/14.093c_W4
www.scoug.com irc.webbnet.info irc.fyrelizard.org #scoug (Wed 7pm PST)
----------------------------------------------------------------------

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".

For problems, contact the list owner at
"rollin@scoug.com".

=====================================================


<< Previous Message << >> Next Message >>

Return to [ 05 | April | 2004 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.