DTsetdate(3dm)DTsetdate(3dm)NAMEDTsetdate - set a date pack to the current time
SYNOPSIS
#include <sys/types.h>
#include <dmedia/dataudio.h>
void DTsetdate(struct dtdatepack *dp)
PARAMETER
dp A pointer to the struct dtdatepack to be set.
DESCRIPTIONDTsetdate 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.
SEE ALSODTintro(3dm), DTaddcallback(3dm), DTatotime(3dm), DTcreateparser(3dm),
DTdeleteparser(3dm), DTinctime(3dm), DTparseframe(3dm),
DTremovecallback(3dm), DTresetparser(3dm), DTtimetoa(3dm), datframe(4)AUTHOR
Mark Callow
Page 1