home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
alib
/
d1xx
/
d168
/
dillonstuff.lha
/
doc
/
dres
/
timedate.doc
< prev
Wrap
Text File
|
1988-11-22
|
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.