home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
177.lha
/
DRes_v1.3
/
docs
/
timedate.doc
< prev
next >
Wrap
Text File
|
1988-04-28
|
968b
|
37 lines
TIMEDATE.DOC
Useful routines...
SetFileDate SetFileDate
DOSBOOL = SetFileDate(file, date)
char *file;
DATESTAMP *date;
This routine sets the datestamp for a file by implementing the new
ACTION_SETDATE Dos packet. 0 is returned on failure, non-zero (-1)
on success.
NOTE: The routine will fail if the file has been locked, shared or
otherwise.
DateToS DateToS
buf = DateToS(date, buf, format)
DATESTAMP *date;
char *buf;
char *format;
This routine calculates the ascii time and date from the datestamp and
jams it into the output buffer (which is returned) according to the
specified format string. If the format string is NULL, "D M Y h:m:s"
is used. Essentially, the characters D,M,Y,h,m, and s are replaced by
their ascii date equivalents (day, month, year, hours, minutes, seconds)
in the output buffer, with all other characters copied verbatim.