× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Fri, 24 Oct 2003, Graap, Ken wrote:

> Shouldn't any site that uses journaling be concerned about setting the clock
> back ??? If you didn't, the time stampts associated with journal entries
> would be wrong...
>
> Wouldn't it be safer to power down, wait and hour, do a manual IPL and set
> the date and time then?
>
> Is this an issue that might affect your ability to recover using journals
> ????

We don't use use journals a lot, but so far this hasn't been a problem for
us.  However may I throw out an idea?  I think that generally RPG programs
use the wrong clock.  This happens because of the 'date' and 'time'
opcodes (and their cousins 'move *date datefield' and 'move UYEAR
yearfield').  These opcodes access the wrong clock.  I suggest that almost
every place that a date or a time is needed the C function gettimeofday()
should be used.  The reason for this is that gettimeofday() accesses the
software clock, which has an appropriate offset, timezone, and can be set
(even automatically) to adjust for daylight savings.  The hardware clock
should not be reset until the system is restarted - ever.  This way
journalling will have an uninterrupted progressive clock against which to
make entries, but users and everything else that matters will use the real
time.

James Rich

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.