Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!sdcc6!sdcc19!sdcc15!pa1343 From: pa1343@sdcc15.ucsd.edu (John J. Marco) Newsgroups: comp.sys.ibm.pc Subject: Date routines in turbo C 1.5. Keywords: Consistency. Message-ID: <1513@sdcc15.ucsd.edu> Date: 16 May 89 01:27:53 GMT Distribution: usa Organization: University of California, San Diego Lines: 17 I am trying to write an 'ls' program under DOS. I am using Turbo C version 1.5 and I use findfirst() and findnext() to get the files. I am having a problem with file dates. find... () returns a structure ffblk such that the time is split into (int ff_ftime, int ff_fdate); These functions use the DOS interrupt for finding the files. Does anybody know of any routines for converting these integers to UNIX format? If not, could somebody who knows please email me and tell me how exactly these integers tell the time. Turbo C does not seem to have any conversion routines and when I print out the integers I get meaningless numbers which do not look like dates. I appreciate any and all help. Please E-mail responses. Thanks. +-----------------------------------------+ | John J. Marco -- pa1343@sdcc15.ucsd.edu | | ...!uunet!sdcc15.ucsd.edu!pa1343 | +-----------------------------------------+