sbuild  1.7.1
Public Member Functions | Private Member Functions | List of all members
sbuild::isodate Class Reference

A date representation in ISO-8601 format. More...

#include <types.h>

+ Inheritance diagram for sbuild::isodate:
+ Collaboration diagram for sbuild::isodate:

Public Member Functions

 isodate (time_t unix_time)
 The constructor. More...
 
virtual ~isodate ()
 The destructor.
 
- Public Member Functions inherited from sbuild::date_base
 date_base (time_t unix_time, break_time_func break_time)
 The constructor. More...
 
virtual ~date_base ()
 The destructor.
 

Private Member Functions

virtual const char * get_date_format () const
 Get the date formatting string. More...
 

Additional Inherited Members

- Public Types inherited from sbuild::date_base
typedef std::tm *(* break_time_func )(const time_t *timep, std::tm *result)
 Function pointer to split time into a std::tm.
 

Detailed Description

A date representation in ISO-8601 format.

Constructor & Destructor Documentation

sbuild::isodate::isodate ( time_t  unix_time)
inline

The constructor.

Parameters
unix_timethe time in UTC.

Member Function Documentation

const char * sbuild::isodate::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 from sbuild::date_base.


The documentation for this class was generated from the following files: