View Full Version : Converting Date to Julian
Guest.Visitor
01-01-1995, 02:00 AM
I need some help converting the date to Julian and from Julian to Gregorian. Does anyone have any ideas on how to go about it? Any help would be greatly appreciated. Thanks in advanced...
Guest.Visitor
01-06-1999, 11:07 AM
The CVTDAT CL command and QWCCVTDT API provide formatting support of Gregorian and Julian, with both types supporting either 2 or 4-digit years. Note though that these only supports a date range of 1928 to 2071; if you need a wider range then you may want to look at the ILE CEE Date and Time APIs in the System API Reference -- these APIs support the same type of formats and a range up to year 9999.
M.Martinez
01-07-1999, 03:17 PM
On Wednesday, January 06, 1999, 11:05 AM, Manuel Rivera wrote: I need some help converting the date to Julian and from Julian to Gregorian. Does anyone have any ideas on how to go about it? Any help would be greatly appreciated. Thanks in advanced... Manuel, Last Feb. 1998 I wrote an article on how to use QWCCVTDT to do the types of date manipulation that you refer to. The code is available from the MC website. I don't know what HLL you are using, but example programs are written in RPG III and OPM COBOL. Bruce mentioned using the CEE* Date and time APIs. These APIs work excellent as well. You will need an ILE langauge to use these APIs. RPG IV has a bunch of date features as well. If you are using CL, the CVTDAT command is a good way to go. Mario Martinez
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.