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 80 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 139 of file Epoch.d.

References dow.

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 158 of file Epoch.d.

References ms.

char [] toDowName  )  [inline]
 

Retrieve English name for the Day of Week

Definition at line 172 of file Epoch.d.

References Days, and dow.

char [] toMonthName  )  [inline]
 

Retrieve English name for the month

Definition at line 183 of file Epoch.d.

References month, and Months.


Member Data Documentation

int year
 

Definition at line 82 of file Epoch.d.

Referenced by Epoch::Fields::VersionPosix::getUtcTime(), Epoch::Fields::VersionWin32::getUtcTime(), Epoch::Fields::VersionPosix::setLocalTime(), Epoch::Fields::VersionPosix::setUtcTime(), and Epoch::Fields::VersionWin32::setUtcTime().

int month
 

Definition at line 82 of file Epoch.d.

Referenced by Epoch::Fields::VersionPosix::getUtcTime(), Epoch::Fields::VersionWin32::getUtcTime(), Epoch::Fields::VersionPosix::setLocalTime(), Epoch::Fields::VersionPosix::setUtcTime(), Epoch::Fields::VersionWin32::setUtcTime(), and toMonthName().

int day
 

Definition at line 82 of file Epoch.d.

Referenced by Epoch::Fields::VersionPosix::getUtcTime(), Epoch::Fields::VersionWin32::getUtcTime(), Epoch::Fields::VersionPosix::setLocalTime(), Epoch::Fields::VersionPosix::setUtcTime(), and Epoch::Fields::VersionWin32::setUtcTime().

int hour
 

Definition at line 82 of file Epoch.d.

Referenced by Epoch::Fields::VersionPosix::getUtcTime(), Epoch::Fields::VersionWin32::getUtcTime(), Epoch::Fields::VersionPosix::setLocalTime(), Epoch::Fields::VersionPosix::setUtcTime(), and Epoch::Fields::VersionWin32::setUtcTime().

int min
 

Definition at line 82 of file Epoch.d.

Referenced by Epoch::Fields::VersionPosix::getUtcTime(), Epoch::Fields::VersionWin32::getUtcTime(), Epoch::Fields::VersionPosix::setLocalTime(), Epoch::Fields::VersionPosix::setUtcTime(), and Epoch::Fields::VersionWin32::setUtcTime().

int sec
 

Definition at line 82 of file Epoch.d.

Referenced by Epoch::Fields::VersionPosix::getUtcTime(), Epoch::Fields::VersionWin32::getUtcTime(), Epoch::Fields::VersionPosix::setLocalTime(), Epoch::Fields::VersionPosix::setUtcTime(), and Epoch::Fields::VersionWin32::setUtcTime().

int ms
 

Definition at line 82 of file Epoch.d.

Referenced by Epoch::Fields::VersionPosix::getUtcTime(), Epoch::Fields::VersionWin32::getUtcTime(), Epoch::Fields::VersionPosix::setLocalTime(), setTime(), Epoch::Fields::VersionPosix::setUtcTime(), and Epoch::Fields::VersionWin32::setUtcTime().

int dow
 

Definition at line 82 of file Epoch.d.

Referenced by setDate(), Epoch::Fields::VersionPosix::setLocalTime(), Epoch::Fields::VersionPosix::setUtcTime(), Epoch::Fields::VersionWin32::setUtcTime(), and toDowName().

char [][] Days [static, private]
 

Initial value:

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

Definition at line 96 of file Epoch.d.

Referenced by toDowName().

char [][] Months [static, private]
 

Initial value:

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

Definition at line 111 of file Epoch.d.

Referenced by toMonthName().


The documentation for this struct was generated from the following file:
Generated on Mon Nov 14 10:59:51 2005 for Mango by  doxygen 1.4.0