DTsetdate(3dm) DTsetdate(3dm)
DTsetdate - set a date pack to the current time
#include <sys/types.h>
#include <dmedia/dataudio.h>
void DTsetdate(struct dtdatepack *dp)
dp A pointer to the struct dtdatepack to be set.
DTsetdate sets the struct dtdatepack, pointed to by dp, to the current
system time as reported by time(2) and converted to the local timezone by
localtime(3). A struct dtdatepack is defined in dataudio.h as follows:
struct dtdatepack {
unchar id:4, dayow:4;
struct dtpackedbcd year;
struct dtpackedbcd month;
struct dtpackedbcd day;
struct dtpackedbcd hour;
struct dtpackedbcd min;
struct dtpackedbcd sec;
unchar parity;
};
DTsetdate is useful for printing date and time stamps during recording.
DTintro(3dm), DTaddcallback(3dm), DTatotime(3dm), DTcreateparser(3dm),
DTdeleteparser(3dm), DTinctime(3dm), DTparseframe(3dm),
DTremovecallback(3dm), DTresetparser(3dm), DTtimetoa(3dm), datframe(4)
Mark Callow
PPPPaaaaggggeeee 1111 [ Back ]
|