>>
APLDN Home

>>
Events

>>
Trainings

>>
APL Books

>>
APLDN Links

>>
Discussion Groups

>>
Downloads

>>
Articles

>>
Library

>>
Learning Tools

>>
APLDN User IO

>>
APL2000.com




Bug Reports

Author Thread: date/time in session log
Brian.Chizever
date/time in session log
Posted: Tuesday, June 08, 2004 9:25 AM (EST)

OK, here's a very low priority item.

 

When you start APL and you have logging on, you get this message:

© Session start Tuesday, June 08, 2004 08:59:56 AM Eastern Standard Time

 

When you load a workspace, you get this message:

C:\BIN\QPKFNS SAVED Monday, June 07, 2004 03:45:01 PM

 

The date/time is in local time.  It uses your Windows regional settings to format the date and time.

 

So, now I have 2 points:

 

1. Why does the session log show the timezone (Eastern Standard Time), while saving and loading a workspace doesn't?

 

2. Why does the session log say "Eastern Standard Time" instead of "Eastern Daylight Time"?


Comments:

Author Thread:
Mark.Osborne
date/time in session log
Posted: Tuesday, June 08, 2004 10:01 AM (EST)
The difference between the session log date and the Load/Save date is due to different system calls. The Load/Save date code is in the interpreter proper and uses the C-runtime function strftime() to format the date. This keeps the interpreter OS independent. The session log code is part of the Session Manager which is Windows specific. It uses Windows specific calls GetTimeZoneInformation() and GetCurrentTime() to retrieve and format the date. The easiest way to remedy this issue is to remove the zone information from the session code. I'm sure someone would miss it and it's probably not worth doing. The "Eastern Standard Time" vs "Eastern Daylight Time" is because we didn't bother to check the bit. This could be easily fixed. /Mark

     



APL2000 Official Web Site

The true "final frontier" is in the minds and the will of people.
-- Gen. Michael E. Ryan, U.S. Air Force Chief of Staff

APLDN Home   |    |  Events   |  Trainings   |  APL Books   |  APLDN Links   |    |  Discussion Groups   |    |  Downloads   |  Articles   |  Library   |  Learning Tools   |  APLDN User IO   |  APL2000.com   |