Dec 062017
 
Routine to produce modified ordinal date string from system time and date. Includes complete TC 2.0 source.
File MODATE.ZIP from The Programmer’s Corner in
Category Batch Files
Routine to produce modified ordinal date string from system time and date. Includes complete TC 2.0 source.
File Name File Size Zip Size Zip Type
MODATE.C 1885 810 deflated
MODATE.COM 8350 5415 deflated
MODATE.DOC 475 325 deflated
MODATE.EXE 9118 5447 deflated

Download File MODATE.ZIP Here

Contents of the MODATE.DOC file


Here is a routine that takes the DOS system clock and outputs a modified
ordinal date string of the form YYMMDDDHHMMSS. For example, if the date
is January 10, 1991 and the time is 11:32:54 AM, the routine will produce
the string 910110113254. Please don't confuse this with the Julian date
- it's not.
It can be very helpful for naming Disk Volumes, Files, Data sets etc..
The code is in TurboC (tiny memory model), short, straightforward, and
Public Domain.

Ray


 December 6, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)