|
Just use the ADDDUR operation code with the *HOURS (*H), *MINUTES(*MN), or *SECONDS(*S) duration. Ex: C ADDDUR calctime(*H) calcdate HTH Adam Ray Programmer/Analyst Wipfli Ullrich Bertelson LLP www.wipfli.com <http://www.wipfli.com> -----Original Message----- From: Troy.C.Dills@blum.com [SMTP:Troy.C.Dills@blum.com] Sent: Wednesday, November 14, 2001 02:53 PM To: rpg400-l@midrange.com Subject: Time help Hi group Could someone help me with some sample code on how to add *hms to a current date (timestamp field) I have already calculated the hours I need to add to the timestamp field (CalcDate) I just need to add the hours to it, to arrive at a new CalcDate field (provided) my hours are enough to roll the date. If this doesn't make sense then I will try to reword it. Any and all replies will be very much appreciated. PS I'm using RPG IV with ILE on v4r5. This is also inside a procedure. Thanks Troy Dills Julius Blum Inc. _______________________________________________ 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. __________________________________________________________________ Please look below this disclaimer for attachments. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. This communication may contain material protected by attorney-client privilege. If you are not the intended recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the Information Systems Manager by telephone at (715)845-3111 postmaster@wipfli.com http://www.wipfli.com ____________________________________________________________________ This message has been generated by MIMEsweeper. This message and attachments have been swept for all known and recorded computer viruses.
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.