|
Then how would you compare these two figures, as they point to exactly
the same moment (that instance where the secondhand reaches the twelve,
so right after 23:59:59.99999999?)? Is 00:00:00 smaller than 24:00:00,
are they equal and if so how could that be? Human agreements are not
applicable here, we are dealing with computer 'science' here.
I can only agree with you that ISO8601 is a good agreement between two
human beings, however the computer has no idea whether the moment after
23:59:59.999999... is used as a referral to the end of the day, or the
beginning of the next day. In this case IBM has made the decision that
we all refer to that moment as 00:00:00 and not 24:00:00.
Kind regards,
Cor
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On
Behalf Of Jonathan Mason
Sent: maandag 21 mei 2007 13:06
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Timestamp edit code problem with midnight
as00:00:00butIwant 24:00:00
Hi Cor
<snip>
There is no such time as 24:00:00, 24:00:00 only exists as
*HIVAL for time-fields if I'm not mistaken. This is purely a
matter of convention.
</snip>
According to ISO 8601 "time" represents the amount of time
that has passed in the day and that 24:00:00 should be used
when referring to the day's end and 00:00:00 should be used
when referring to the day's beginning.
For example: 2007-05-21 24:00:00 and 2007-05-22 00:00:00
refer to the same thing.
All the best
Jonathan
--
This is the RPG programming on the AS400 / iSeries (RPG400-L)
mailing list To post a message email:
RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
As an Amazon Associate we earn from qualifying purchases.
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.