From: Christian P. <cp...@us...> - 2004-12-28 20:08:39
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/System In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26758/include/pclasses/System Added Files: SystemClock.h Log Message: Added System::SystemClock class --- NEW FILE: SystemClock.h --- /*************************************************************************** * Copyright (C) 2004 by Christian Prochnow * * cp...@se... * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Library General Public License as * * published by the Free Software Foundation; either version 2 of the * * License, or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU Library General Public * * License along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifndef P_System_SystemClock_h #define P_System_SystemClock_h #include <pclasses/DateTime.h> #include <string> namespace P { namespace System { class SystemClock { public: //! Operation mode for now() enum NowMode { Local, /*!< Retrieve current system time in local time */ UTC /*!< Retrieve current system time in UTC */ }; //! Fetch current system time static DateTime now(NowMode mode); //! Fetch current system timezone static std::string timeZone(); }; } //! namespace System } //! namespace P #endif |