× 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.



I guess I was poking fun at what is a trick question of venue, not that
anyone is trying to trick anyone else.

I realize that midnight is special, but one would have to be careful to
defend the use of 24:00:00 to a visitor from another planet least that
visitor, using the same logical, program a system to let 60 show for seconds
and then 60 show for minutes and then midnight becomes 24:60:60.

I'm offering that the second (pun intended) that we get outside this range
(00:00:00.000000 to 23:59:59.999999) we've an error waiting to happen trying
to program semantics that all might not agree on using.

Steve



They are different, yet the same as they are two different ways of
referring
to the same thing, i.e. midnight. It makes sense for computers to work on
the 00:00:00.000000 to 23:59:59.999999 range as there are fewer rollover
checks to make when incrementing the low-ordinal values.

Jonathan

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Steve Moland
Sent: 21 May 2007 13:26
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Timestamp edit code problem withmidnight
as00:00:00butIwant24:00:00

If they are truly different and have a value (other than to fuel heated
debates) that represents a point in time, then there should be an elapsed
time between them. Perhaps Hawking is working on finding that such a
difference really exists. [smile]

Steve Moland


"Richard ECUYER" <recuyer@xxxxxxx> wrote in message
news:46518A29.50900@xxxxxxxxxx
The time is lower, but the date is not the same no ?

From 2007-05-21 24:00:00
To 2007-05-22 00:00:00

Takken, Cor a icrit :
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.


--
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 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.






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.