Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Epoch::Fields Struct Reference

List of all members.

Public Member Functions

void setDate (int year, int month, int day, int dow=0)
void setTime (int hour, int min, int sec, int ms=0)
char[] toDowName ()
char[] toMonthName ()

Public Attributes

int year
int month
int day
int hour
int min
int sec
int ms
int dow

Static Private Attributes

static char[][] Days
static char[][] Months

Classes

class  VersionPosix
class  VersionWin32

Detailed Description

A set of fields representing date/time components. This is used to abstract differences between Win32 & Posix platforms.

Definition at line 90 of file Epoch.d.


Member Function Documentation

void setDate int  year,
int  month,
int  day,
int  dow = 0
[inline]
 

Set the date-related values

year : fully defined year ~ e.g. 2005 month : 1 through 12 day : 1 through 31 dow : 0 through 6; sunday=0 (typically set by O/S)

Definition at line 149 of file Epoch.d.

void setTime int  hour,
int  min,
int  sec,
int  ms = 0
[inline]
 

Set the time-related values

hour : 0 through 23 min : 0 through 59 sec : 0 through 59 ms : 0 through 999

Definition at line 168 of file Epoch.d.

char [] toDowName  )  [inline]
 

Retrieve English name for the Day of Week

Definition at line 182 of file Epoch.d.

char [] toMonthName  )  [inline]
 

Retrieve English name for the month

Definition at line 193 of file Epoch.d.


Member Data Documentation

int year
 

Definition at line 92 of file Epoch.d.

int month
 

Definition at line 92 of file Epoch.d.

int day
 

Definition at line 92 of file Epoch.d.

int hour
 

Definition at line 92 of file Epoch.d.

int min
 

Definition at line 92 of file Epoch.d.

int sec
 

Definition at line 92 of file Epoch.d.

int ms
 

Definition at line 92 of file Epoch.d.

int dow
 

Definition at line 92 of file Epoch.d.

char [][] Days [static, private]
 

Initial value:

 
                [
                        "Sunday",
                        "Monday",
                        "Tuesday",
                        "Wednesday",
                        "Thursday",
                        "Friday",
                        "Saturday",
                ]

Definition at line 106 of file Epoch.d.

char [][] Months [static, private]
 

Initial value:

 
                [
                        "null",
                        "January",
                        "February",
                        "March",
                        "April",
                        "May",
                        "June",
                        "July",
                        "August",
                        "September",
                        "October",
                        "November",
                        "December",
                ]

Definition at line 121 of file Epoch.d.


The documentation for this struct was generated from the following file:
Generated on Fri Nov 11 18:44:33 2005 for Mango by  doxygen 1.4.0