ScummVM API documentation
TimeDate Struct Reference

#include <system.h>

Inheritance diagram for TimeDate:
AGS3::tm

Public Attributes

int tm_sec
 
int tm_min
 
int tm_hour
 
int tm_mday
 
int tm_mon
 
int tm_year
 
int tm_wday
 

Detailed Description

Structure describing time and date.

This is a clone of struct tm from time.h. We implement our own since not all systems provide time.h. This is not a one-to-one replacement of the tm struct, as only the fields that we need were added.

Note
For now, the members are named exactly as in struct tm to ease the transition.

Member Data Documentation

◆ tm_sec

int TimeDate::tm_sec

Seconds (0 - 60).

◆ tm_min

int TimeDate::tm_min

Minutes (0 - 59).

◆ tm_hour

int TimeDate::tm_hour

Hours (0 - 23).

◆ tm_mday

int TimeDate::tm_mday

Day of month (1 - 31).

◆ tm_mon

int TimeDate::tm_mon

Month of year (0 - 11).

◆ tm_year

int TimeDate::tm_year

Year - 1900.

◆ tm_wday

int TimeDate::tm_wday

Days since Sunday (0 - 6).


The documentation for this struct was generated from the following file: