Salome HOME
PR: new python function getShortHostName() in Utils_Identity.py, based on socket...
[modules/yacs.git] / src / Batch / Batch_Date.hxx
1 /*
2  * Date.hxx : 
3  *
4  * Auteur : Ivan DUTKA-MALEN - EDF R&D
5  * Mail   : mailto:ivan.dutka-malen@der.edf.fr
6  * Date   : Wed Nov 26 14:11:42 2003
7  * Projet : Salome 2
8  *
9  */
10
11 #ifndef _DATE_H_
12 #define _DATE_H_
13
14 #include <string>
15
16 namespace Batch {
17
18   class Date
19   {
20   public:
21     Date(const long l=0);
22     Date(const std::string s);
23     virtual Date & operator =(long l);
24     virtual Date & operator +(long l);
25     virtual Date & operator -(long l);
26     virtual Date & operator +=(long l);
27     virtual Date & operator -=(long l);
28     virtual Date & operator =(const std::string & s);
29     virtual std::string str() const;
30     virtual long epoch() const;
31
32   protected:
33     int _day, _month, _year;
34     int _hour, _min, _sec;
35
36   private:
37
38   };
39
40 }
41
42 #endif
43
44 // COMMENTS