Date.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #include <iostream>
00013 //#include "zypp/base/Logger.h"
00014 
00015 #include "zypp/Date.h"
00016 
00017 using std::endl;
00018 
00020 namespace zypp
00021 { 
00022 
00024   //
00025   //    METHOD NAME : Date::form
00026   //    METHOD TYPE : std::string
00027   //
00028   std::string Date::form( const std::string & format_r ) const
00029   {
00030     static char buf[1024];
00031     if ( ! strftime( buf, 1024, format_r.c_str(), localtime( &_date ) ) )
00032       return std::string();
00033     return buf;
00034   }
00035 
00037 } // namespace zypp

Generated on Thu Jul 6 00:07:20 2006 for zypp by  doxygen 1.4.6