1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
13 //#include "zypp/base/Logger.h"
15 #include "zypp/base/String.h"
17 #include "zypp/Date.h"
21 ///////////////////////////////////////////////////////////////////
23 { /////////////////////////////////////////////////////////////////
25 ///////////////////////////////////////////////////////////////////
27 // METHOD NAME : Date::Date
28 // METHOD TYPE : Constructor
30 Date::Date( const std::string & seconds_r )
31 { str::strtonum( seconds_r, _date ); }
33 ///////////////////////////////////////////////////////////////////
35 // METHOD NAME : Date::form
36 // METHOD TYPE : std::string
38 std::string Date::form( const std::string & format_r ) const
40 static char buf[1024];
41 if ( ! strftime( buf, 1024, format_r.c_str(), localtime( &_date ) ) )
46 /////////////////////////////////////////////////////////////////
48 ///////////////////////////////////////////////////////////////////