Hi Peter,
According to ISO 8601: Midnight may be expressed as either 00:00:00 or
24:00:00.
That doesn't help, so what is left now is to work out between you what
the interpretation will be. If needed you might want to agree upon a
standard (well.. ISO doesn't help here, but perhaps ANSI, or some
European or even Belgian organisation) and work out a solution between
you.
If anything else fails you can always resolve to the more down to earth
rules like: "the best paying customer wins", "highest pay wins",
"highest in rank wins", "the best blackmail ploy wins" or "heads or
tails?".
Kind regards,
Cor
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Peter.Colpaert@xxxxxxxxx
Sent: woensdag 28 november 2007 10:24
To: rpg400-l@xxxxxxxxxxxx
Subject: 00:00:00 or 24:00:00
Hi group,
we're having a bit of a discussion here regarding time.
One of our processes involves parsing a directory listing of a windows
shared drive, and there are 6 files which cause problems.
These files have an entry in the listing as follows:
01/01/2000 12:00a 438,082 GN0229084.JPG
The listing is parsed by two different programs (one made by me, the
other made several years ago by another developer).
His program (using pre-bif methods) returns the time as 00:00:00,
whereas mine (using the %time built-in function) returns 24:00:00
First of all, I'd like to know whether January 1, 2000 00:00:00 is the
same as January 1, 2000 24:00:00 (I would think that the latter actually
means January 2).
Second, which one is correct?
Considering that the listing is using *USA time notation, I'm hoping you
guys from across the pond can point me in the right direction.
My suggestion to my project leader is to manually update the timestamp
to
1 minute past midnight, and avoid the discussion altogether (what are
the chances of new documents having a timestamp of midnight anyway)
Thanks in advance,
Peter Colpaert
Application Developer
PLI - IT - Kontich, Belgium
-----
Yoda of Borg are we. Futile is resistance, assimilated will you be.
-----
--
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.