Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI718.ASC

 
Output of file : TI718.ASC contained in archive : C-ALL.ZIP







PRODUCT : Borland C++ NUMBER : 718
VERSION : 2.0
OS : DOS
DATE : September 18, 1991 PAGE : 1/1

TITLE : Printing the Date and Time of a File




/*************************************************************
This program will print the date and time of a file.
*************************************************************/

#include
#include

union FF
{
unsigned i[2];
struct ftime f;
} u;

main()
{
struct ffblk ff;

findfirst("tc.exe", &ff, 0);
u.i[0]= ff.ff_ftime;
u.i[1]= ff.ff_fdate;
printf("date= %d/%d/%d time= %d:%d:%d\n",
u.f.ft_month, u.f.ft_day, u.f.ft_year+80,
u.f.ft_hour, u.f.ft_min, u.f.ft_tsec);

return 0;
}

























  3 Responses to “Category : C Source Code
Archive   : C-ALL.ZIP
Filename : TI718.ASC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/