home *** CD-ROM | disk | FTP | other *** search
- #include "VideoToolbox.h"
-
- char *DateString(unsigned long seconds)
- /* returns a pointer to a string representing the time in a form suitable for
- use as a unique filename extension, e.g. "89.06.25.01.59.59", that
- sorts in chronological order */
- {
- DateTimeRec t;
- static char dateString[26];
-
- Secs2Date(seconds,&t);
- sprintf(dateString,"%02d.%02d.%02d.%02d.%02d.%02d",t.year-1900,t.month,t.day,t.hour,t.minute,t.second);
- return dateString;
- }