Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more::sys::date Struct Reference

cultural notion of time. More...

#include <date.h>

List of all members.

Public Types

Public Methods

Friends


Detailed Description

cultural notion of time.

That is, year, month, ..., h, min, s.


Member Typedef Documentation

typedef long more::sys::date::timezone_type
 

an arithmetic type with implicit conversion to time_t, used to express the timezone.


Member Enumeration Documentation

enum more::sys::date::precision_type
 

used to specify the precision of the date.

Enumeration values:
undefined 
within_1_year 
within_1_month 
within_1_day 
within_1_h 
within_1_min 
within_1_s 


Constructor & Destructor Documentation

more::sys::date::date   [inline]
 

trivial default constructor.

more::sys::date::date time_t    t,
precision_type    tp,
timezone_type    tz
 

construct a date from time_t.

Use m_tz = 0 to make an UTC date.

more::sys::date::date time_t   ,
precision_type    tp = within_1_s
 

construct the a local date from a time_t.

more::sys::date::date tm *    c_tm [inline]
 

construct from tm data.

more::sys::date::date int    year,
int    month = -1,
int    day = -1,
int    h = -1,
int    min = -1,
int    s = -1
 

Construct local date from year, month, ..., down to given precision.


Member Function Documentation

std::tm const* more::sys::date::c_tm   const [inline]
 

returns tm data for interfacing C functions.

int more::sys::date::day   const [inline]
 

day of the month 1..31.

int more::sys::date::day_of_week   const [inline]
 

days passed since previous sunday.

int more::sys::date::day_of_year   const [inline]
 

days passed since previus new year.

int more::sys::date::h   const [inline]
 

hours, 0..23.

bool more::sys::date::is_defined   const [inline]
 

True unless an unchanged default constructed object or a copy of such.

bool more::sys::date::is_dst   const [inline]
 

true if daylight saving time is in effect.

int more::sys::date::min   const [inline]
 

minutes, 0..59.

int more::sys::date::month   const [inline]
 

month of the year 1..12.

more::sys::date::operator time_t   const [inline]
 

int more::sys::date::s   const [inline]
 

seconds, 0..59.

void more::sys::date::sync more::io::syncstream  
 

used by more::io::syncstream, don't call directly.

timezone_type more::sys::date::timezone   const [inline]
 

returns the difference between UTC and the timezone for this date.

int more::sys::date::year   const [inline]
 

the year.


Friends And Related Function Documentation

template<typename CharT, typename Traits>
std::basic_ostream<CharT, Traits>& operator<< std::basic_ostream< CharT, Traits > &   ,
date const &   
[friend]
 

template<typename CharT, typename Traits>
std::basic_istream<CharT, Traits>& operator>> std::basic_istream< CharT, Traits > &    is,
date &    d
[friend]
 


The documentation for this struct was generated from the following file:
Generated on Sat Sep 7 19:13:13 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.