Struct:ttTimeCal

Jump to: navigation, search

The following structure is modeled after the Unix® struct tm. It is used by the tfGetUtcTime() to convert from seconds since January 1, 1970.


#include <trsocket.h>
 
/*
 * Time/date structure.
 */
typedef struct tsTimeCal
{
    int tmcMsec;    /* milliseconds after the second - [0,999] */
    int tmcSec;     /* seconds after the minute - [0,59] */
    int tmcMin;     /* minutes after the hour - [0,59] */
    int tmcHour;    /* hours since midnight - [0,23] */
    int tmcMday;    /* day of the month - [1,31] */
    int tmcMon;     /* months since January - [0,11] */
    int tmcYear;    /* years since 1900 */
    int tmcWday;    /* days since Sunday - [0,6] */
    int tmcYday;    /* days since January 1 - [0,365] */
} ttTimeCal;
typedef ttTimeCal TM_FAR * ttTimeCalPtr;