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



Long ago the day ended at sunset or at the apearence of the first star. Not at midnight


John Arnold (MFS) wrote:

When you have no zero, then noon is both the end of the morning and the
beginning of the afternoon and midnight is the end of the previous day
and the beginning of the next day.
Logically, one should use zero when referring to the beginning of the
day and 24:00:00 as the ending of the day - only by doing this are time
span calculations possible.

John Arnold
(301) 354-2939


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Ron Power
Sent: Wednesday, November 28, 2007 10:14 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: 00:00:00 or 24:00:00

Interesting. So why they don't use 12N and 12M I have no idea since
neither are before nor after their respective times. Where are my
advil.....

Ron Power
Programmer
Information Services
City Of St. John's, NL
P.O. Box 908
St. John's, NL
A1C 5M2
709-576-8132
rpower@xxxxxxxxxx
http://www.stjohns.ca/
________________________________________________________________________
___
Success is going from failure to failure without a loss of enthusiasm. -
Sir Winston Churchill Freedom is the right of all sentient beings. -
Optimus Prime



Alan Shore <AlanShore@xxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx
2007/11/28 11:22 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
RE: 00:00:00 or 24:00:00







Ron
what you say made sense, until I read the following

http://en.wikipedia.org/wiki/Midnight



Alan Shore

NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx
"If you're going through Hell, keep going" - Winston Churchill



Ron Power <RPower@xxxxxxxxx a>
To
Sent by: RPG programming on the AS400 / rpg400-l-bounces@ iSeries <rpg400-l@xxxxxxxxxxxx> midrange.com
cc


Subject
11/28/2007 09:42 RE: 00:00:00 or 24:00:00 AM

Please respond to RPG programming on the AS400 / iSeries <rpg400-l@midrang e.com>





Not really. I don't see it that way see. To me, the am/pm follows the
Hour that it is in. You can't have 12:00PM then 12:01AM. Because the
hour is the same, then the 1 minute after the hour must reside within
the
same AM/PM as the beginning of the hour. It would be more confusing to
me
if the 12:00PM is followed by 12:01AM. If it were that way then what
would 12:00:01 be? But of course that's just the way I look at it.

Ron Power
Programmer
Information Services
City Of St. John's, NL
P.O. Box 908
St. John's, NL
A1C 5M2
709-576-8132
rpower@xxxxxxxxxx
http://www.stjohns.ca/
________________________________________________________________________
___
Success is going from failure to failure without a loss of enthusiasm. -
Sir Winston Churchill
Freedom is the right of all sentient beings. - Optimus Prime



Alan Shore <AlanShore@xxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
2007/11/28 11:01 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
RE: 00:00:00 or 24:00:00







Surely the same can be said of the following
1) 11:59pm is 1 minute before 12:00pm. 11:59pm is obviously just before
midnight, so 12:00pm is midnight.
2) 11:59am is 1 minute before 12:00am. 11:59am is obviously just before
noon, so 12:00am is noon.

Confusing aint it


Alan Shore

NBTY, Inc
(631) 244-2000 ext. 5019
AShore@xxxxxxxx
"If you're going through Hell, keep going" - Winston Churchill




"Jeff Crosby"
<jlcrosby@dilgard
foods.com>
To

Sent by: "'RPG programming on the AS400 /
rpg400-l-bounces@ iSeries'" <rpg400-l@xxxxxxxxxxxx>
midrange.com
cc



Subject

11/28/2007 07:16 RE: 00:00:00 or 24:00:00
AM


Please respond to
RPG programming
on the AS400 /
iSeries
<rpg400-l@midrang
e.com>






When I get confused as to when 12:00pm and 12:00am occur, I use the
following trick to remind me.

1) 12:00pm is 1 minute before 12:01pm. 12:01pm is obviously just after
noon, so 12:00pm is noon.
2) 12:00am is 1 minute before 12:01am. 12:01am is obviously just after
midnight, so 12:00am is midnight.

But I'm with you, just 1 more reason to use a 24-hour clock. Oh wait,
isn't
that where the 00:00 and 24:00 confusion came in? <g>

--
Jeff Crosby
UniPro FoodService/Dilgard
P.O. Box 13369
Ft. Wayne, IN 46868-3369
260-422-7531

The opinions expressed are my own and not necessarily the opinion of my
company. Unless I say so.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Joep Beckeringh
Sent: Wednesday, November 28, 2007 5:53 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: 00:00:00 or 24:00:00

Hallo Peter,

You are right; 12:00 AM is used for midnight. Apparently I'm
not the only one confused by this:
<http://en.wikipedia.org/wiki/12-hour_clock#Confusion_at_noon_
and_midnight>.
One more reason to stay with 24hr notation :-)

Joep Beckeringh



Peter.Colpaert@xxxxxxxxx schreef:

Joep,

If I run 12:00a through a test program, I get 24:00.

Here's the code:

d tijd s 10a inz('12:00a')
d c_p c 'P'
d c_pm c ' PM'
d c_am c ' AM'
d timupd s 6p 0 inz

/copy qrpglecpy,prattribs
/copy qrpglecpy,prqc2le
/free

Reset tijd;
If %subst(tijd:6:1) = c_p;
%subst(tijd:6) = c_pm;
Else;
%subst(tijd:6) = c_am;
EndIf;
timupd = atoi(%char(%time(tijd:*usa):*iso0));

*inlr = *on;
Return;

/end-free

When debugging, the field timupd is set to 240000.

So if I combine this with the date of 20000101, it seems to

point to

midnight between 1 and 2 January 2000.

When initializing the tijd field to '12:01a', I get (as expected) a
value of 000100 in the timupd field.

Very strange to understand, though.

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







This email communication and accompanying documents is intended only for
the individual or entity to which it is addressed and may contain
information that is confidential, privileged or exempt from disclosure
under applicable law. Any use of this information by individuals or
entities other than the intended recipient is strictly prohibited. If
you
have received this in error, please notify the sender and delete all the
copies (electronic or otherwise) immediately.
--
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.