|
2400 (Pronounced twenty four hundred) is used in military time to designate midnight. In reality, time 240000 is correct and 000000 is incorrect, but 000001 is correct and 240001 is incorrect. I suspect that the AS/400 will not accept 240001 as a valid time, which it is not. This is mostly semantics, however, and most people couldn't care less what is correct, they just know they want to use 000000 to designate midnight, or use 240000 to designate midnight, forget what is right or wrong, do what I mean, not what I say <g> But, as you've apparently found, the AS/400 internally stores midnight as 000000, and trying to enter 240000 as midnight into system commands won't work. This may mean, however, that these are older commands that are still storing the times as numeric, and not as time values (not sure, just guessing). So, if you are storing into time variables in your programs, I don't' think you need to worry about which way it is storing it, it will accept either as midnight. However, in system commands that may, or may not, be using time variables you need to make sure you do it in the format the command recognizes. Myself, I was never sure so I never submitted anything at midnight, I would submit it at 000001 just to be sure both the system and I knew what we were talking about. Regards, Jim Langston Programmer/Analyst Cels Enterprises, Inc. -----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On Behalf Of Slava Zharichenko Sent: Friday, September 07, 2001 11:49 AM To: rpg400-l@midrange.com Subject: LAST POST.RE: Time validations bug?? ok. i was wrong. valid times are from 0 to 240000. and because of multiple If...or...or....and .. i was not getting the right validations. But still why 240000 is valid? i can not setup schedule jobs at 240000 some other system function my errored out if i pass 240000 time. I guess i should also validate it in my program comparing to 240000. Thanks ______________________________________________________________________ Important Email Information The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com 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 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.