string DateFormater::getDate (  )  [static]

Definition at line 8 of file DateFormater.cpp.

00008                                         {
00009         time_t timeStamp;
00010         tm* pTimeStruct;
00011         timeStamp = time(0);
00012         pTimeStruct = localtime(&timeStamp);
00013         ostringstream s;
00014         s.fill('0');
00015         s.width(2);
00016         s << pTimeStruct->tm_mday;
00017         s.width(0);
00018         s << ".";
00019         s.width(2);
00020         s << pTimeStruct->tm_mon+1;
00021         s.width(0);
00022         s << ".";
00023         s.width(4);
00024         s << pTimeStruct->tm_year+1900;
00025         s.width(0);
00026         s << "-";
00027         s.width(2);
00028         s << pTimeStruct->tm_hour;
00029         s.width(0);
00030         s << ":";
00031         s.width(2);
00032         s << pTimeStruct->tm_min;
00033         s.width(0);
00034         s << ":";
00035         s.width(2);
00036         s << pTimeStruct->tm_sec;
00037         s.width(0);
00038         s << ": ";
00039         
00040         return s.str();
00041 }


Generated on Wed Jun 25 14:47:08 2008 for keyvil by  doxygen 1.5.1