Date Compression and Year 2000 Challenges
By Robert L. Moore and D. Gregory Foley
Dr. Dobb's Journal May 1998
DDDDDD to MMDDYYYY Use DDToDDD4Y.c (Listing Four; available electronically) to convert from DDDDDD to DDDYYYY. This is a four digit year and a count of days starting at January 1 within that year. Use DDDToMMDD.c (Listing Five; available electronically) on the DDD part of DDDYYYY to convert DDD to MMDD. The combined result is MMDDYYYY.
Example 4: DDDDDD to MMDDYYYY.
Copyright © 1998, Dr. Dobb's Journal