#include <sbuild-types.h>

Public Types | |
| typedef std::tm *(* | break_time_func )(const time_t *timep, std::tm *result) |
| Function pointer to split time into a std::tm. | |
Public Member Functions | |
| date_base (time_t unix_time, break_time_func break_time) | |
| The constructor. | |
| virtual | ~date_base () |
| The destructor. | |
Private Member Functions | |
| virtual const char * | get_date_format () const |
| Get the date formatting string. | |
Private Attributes | |
| time_t | unix_time |
| The time. | |
| break_time_func | break_time |
| The function to split up the time. | |
Friends | |
| template<class charT , class traits > | |
| std::basic_ostream< charT, traits > & | operator<< (std::basic_ostream< charT, traits > &stream, date_base const &dt) |
| Output the date to an ostream. | |
| typedef std::tm*(* sbuild::date_base::break_time_func)(const time_t *timep, std::tm *result) |
Function pointer to split time into a std::tm.
| sbuild::date_base::date_base | ( | time_t | unix_time, | |
| break_time_func | break_time | |||
| ) | [inline] |
The constructor.
| unix_time | the time. | |
| break_time | the function to split up the time. |
| virtual sbuild::date_base::~date_base | ( | ) | [inline, virtual] |
The destructor.
| const char * sbuild::date_base::get_date_format | ( | ) | const [private, virtual] |
Get the date formatting string.
This is used for output with the locale std::time_put facet.
Reimplemented in sbuild::isodate.
| std::basic_ostream<charT,traits>& operator<< | ( | std::basic_ostream< charT, traits > & | stream, | |
| date_base const & | dt | |||
| ) | [friend] |
break_time_func sbuild::date_base::break_time [private] |
The function to split up the time.
time_t sbuild::date_base::unix_time [private] |
The time.
1.5.8