A date representation.
More...
#include <sbuild-types.h>
|
|
typedef std::tm *(* | break_time_func )(const time_t *timep, std::tm *result) |
| | Function pointer to split time into a std::tm.
|
| |
|
| 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. More...
|
| |
| sbuild::date_base::date_base |
( |
time_t |
unix_time, |
|
|
break_time_func |
break_time |
|
) |
| |
|
inline |
The constructor.
- Parameters
-
| unix_time | the time. |
| break_time | the function to split up the time. |
| const char * sbuild::date_base::get_date_format |
( |
| ) |
const |
|
privatevirtual |
Get the date formatting string.
This is used for output with the locale std::time_put facet.
- Returns
- a localised format string.
Reimplemented in sbuild::isodate.
References sbuild::_().
template<class charT , class traits >
| std::basic_ostream<charT,traits>& operator<< |
( |
std::basic_ostream< charT, traits > & |
stream, |
|
|
date_base const & |
dt |
|
) |
| |
|
friend |
Output the date to an ostream.
- Parameters
-
| stream | the stream to output to. |
| dt | the date to output. |
- Returns
- the stream.
The documentation for this class was generated from the following files: