2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.

 

Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Ux::Timetm Class Reference
[C++ Wrapper for Standard UNIX Functions]

Inheritance diagram for Ux::Timetm:

tm Ux::Base List of all members.

Detailed Description

Don't use this class -- use TimeParts instead.

Definition at line 82 of file uxtimetm.hpp.

Public Member Functions

 Timetm (time_t t=0)
 operator const char * ()
void set (const struct tm &t)
time_t mktime (void)
const char * asctime (bool keep_nl=true)
void getdate (const char *s)
void gmtime (const time_t *t=NULL)
void gmtime (time_t t)
void localtime (const time_t *t=NULL)
void localtime (time_t t)
char * strptime (const char *s, const char *format)
size_t strftime (char *buf, size_t bufsize, const char *format)
size_t wcsftime (wchar_t *buf, size_t bufsize, const wchar_t *format)

Protected Attributes

Timestr str


Constructor & Destructor Documentation

Ux::Timetm::Timetm time_t  t = 0  )  [inline]
 

Initializes to local time (at epoch by default).

Definition at line 90 of file uxtimetm.hpp.

References localtime().


Member Function Documentation

const char * Timetm::asctime bool  keep_nl = true  ) 
 

Definition at line 37 of file uxtimetm.cpp.

References str, and Ux::Timestr::timestr.

Referenced by operator const char *().

void Timetm::getdate const char *  s  ) 
 

Definition at line 46 of file uxtimetm.cpp.

References EC_GETDATE, and set().

void Ux::Timetm::gmtime time_t  t  )  [inline]
 

Version of gmtime that takes a time_t instead of a pointer to one.

Definition at line 104 of file uxtimetm.hpp.

References gmtime().

void Timetm::gmtime const time_t *  t = NULL  ) 
 

Definition at line 55 of file uxtimetm.cpp.

References errno, and time().

Referenced by gmtime().

void Ux::Timetm::localtime time_t  t  )  [inline]
 

Version of localtime that takes a time_t instead of a pointer to one.

Definition at line 110 of file uxtimetm.hpp.

References localtime().

void Timetm::localtime const time_t *  t = NULL  ) 
 

Definition at line 67 of file uxtimetm.cpp.

References errno, and time().

Referenced by localtime(), and Timetm().

time_t Timetm::mktime void   ) 
 

Definition at line 24 of file uxtimetm.cpp.

References errno.

Ux::Timetm::operator const char *  )  [inline]
 

Definition at line 94 of file uxtimetm.hpp.

References asctime().

void Timetm::set const struct tm &  t  ) 
 

Definition at line 79 of file uxtimetm.cpp.

References Ux::Timestr::clear(), str, tm::tm_hour, tm::tm_isdst, tm::tm_mday, tm::tm_min, tm::tm_mon, tm::tm_sec, tm::tm_wday, tm::tm_yday, and tm::tm_year.

Referenced by getdate().

size_t Timetm::strftime char *  buf,
size_t  bufsize,
const char *  format
 

Definition at line 106 of file uxtimetm.cpp.

References errno.

char * Timetm::strptime const char *  s,
const char *  format
 

Definition at line 93 of file uxtimetm.cpp.

References errno.

size_t Timetm::wcsftime wchar_t *  buf,
size_t  bufsize,
const wchar_t *  format
 

Definition at line 119 of file uxtimetm.cpp.

References errno.


Member Data Documentation

Timestr Ux::Timetm::str [protected]
 

Definition at line 84 of file uxtimetm.hpp.

Referenced by asctime(), and set().


The documentation for this class was generated from the following files:
Generated on Fri Apr 23 10:57:19 2004 for AUP2 Example Source by doxygen 1.3.1