Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ DTsetdate(3dm) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

DTintro(3dm)

DTaddcallback(3dm)

DTatotime(3dm)

DTcreateparser(3dm)

DTdeleteparser(3dm)

DTinctime(3dm)

DTparseframe(3dm)

DTremovecallback(3dm)

DTresetparser(3dm)

DTtimetoa(3dm)

datframe(4)



DTsetdate(3dm)                                                  DTsetdate(3dm)



NAME
     DTsetdate - 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.

DESCRIPTION
     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.

SEE ALSO
     DTintro(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



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026