|
On Tue, 23 Jan 2001, Jim Langston wrote: > Thanks, this is close to what I wrote, but I called it DTSToStamp and > it first calls QWCCVTDT to convert it then I do the move and return an > RPG time stamp. > > Just what is CEELOCT doing? About the same thing as CWCCVTDT? DTS > is an 8 byte field, but your peGregor is a 17 byte field, the same > format that CWCCVTDT comes out with with *YYMD format. CEELOCT gets the local time from the system clock. Its in the "ILE CEE APIs" manual. The only reason I used it is because CEELOCT is bindable, and only retrieves the time, and therefore it should be faster than QWCCVTDT... I was using it to time things to the millisecond, so speed was important. The manual states: output_Gregorian (output) A 17-byte character string in the form YYYYMMDDHHMISS999 representing local year, month, day, hour, minute, second, and millisecond. > > I was just hoping there was something I was overlooking and that it was > very easy to convert between the two without moves. Guess not. > > Regards, > > Jim Langston > No, like I said... I'd like to see a *DTS factor one for the MOVE operating with timestamp fields... but for today's program, you'll have to use the DS. +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.