[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


struct tm

The struct tm type contains a field for each part of a calendar date and time.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <time.h>
struct tm {
  int tm_sec;
  int tm_min;
  int tm_hour;
  int tm_mday;
  int tm_mon;
  int tm_year;
  int tm_wday;
  int tm_yday;
  int tm_isdst;
  };
Remarks:

The tm structure members are listed "Tm Structure Members.".


NOTE

The tm_isdst flag is positive if Daylight Savings Time is in effect, zero if it is not, and negative if such information is not available.
Tm Structure Members.:

Field
Description
Range
min - max
int tm_sec  
Seconds after the minute  
0 - 59  
int tm_min  
Minutes after the hour  
0 - 59  
int tm_hour  
Hours after midnight  
0 - 23  
int tm_mday  
Day of the month  
1 - 31  
int tm_mon  
Months after January  
0 - 11  
int tm_year  
Years after 1900  
 
int tm_wday  
Days after Sunday  
0 - 6  
int tm_yday  
Days after January 1  
0 - 365  
int tm_isdst  
Daylight Savings Time flag  
 


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000