|
CEELOCT is going to return the system local time (so if the system is in Mountain time they you're set to go). As the system is in one time zone (Central) and your plant in another, I would probably use the Convert Date and Time Format (QWCCVTTM) API. Calling it as in: dcl &answer *char 17 call qwccvtdt ('*CURRENT' ' ' '*YYMD' &answer 0 '*SYS' 'QN0700MST' ' ' 0 '0') will, at offset 8 through 13, give you the current time in time zone QN0700MST (Mountain Standard Time). For details on all the various parameters you should refer to the V5R3 Information Center under Programming/APIs/APIs by category/Date and Time/Convert Date and Time Format Bruce Vining Ronald Newman <newmanr2002@yaho o.com> To Sent by: rpg400-l@xxxxxxxxxxxx rpg400-l-bounces@ cc midrange.com Subject Local Time 10/11/2005 12:21 PM Please respond to RPG programming on the AS400 / iSeries I would like to use the api CEELOCT to retrieve the local time for a plant in Montana. The i5 is in the central time zone. Will the CEELOCT api give me the time in mountain time? Ron --------------------------------- Yahoo! Music Unlimited - Access over 1 million songs. Try it free. -- 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 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.