3 //==========================================================================
7 * $Id: Date_Time.h 80826 2008-03-04 14:51:23Z wotte $
9 * @author Tim Harrison (harrison@cs.wustl.edu) (and he's darn proud of this ;-))
12 //==========================================================================
14 #ifndef ACE_DATE_TIME_H
15 #define ACE_DATE_TIME_H
16 #include /**/ "ace/pre.h"
18 #include /**/ "ace/ACE_export.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
29 * @class ACE_Date_Time
31 * @brief System independent representation of date and time.
33 class ACE_Export ACE_Date_Time
36 /// Constructor initializes current time/date info.
39 /// Constructor initializes with the given ACE_Time_Value
40 explicit ACE_Date_Time (const ACE_Time_Value
& timevalue
);
42 /// Constructor with init values, no check for validy
43 /// Set/get portions of ACE_Date_Time, no check for validity.
44 ACE_Date_Time (long day
,
53 /// Update to the current time/date.
56 /// Update to the given ACE_Time_Value
57 void update (const ACE_Time_Value
& timevalue
);
60 long day (void) const;
66 long month (void) const;
69 void month (long month
);
72 long year (void) const;
75 void year (long year
);
78 long hour (void) const;
81 void hour (long hour
);
84 long minute (void) const;
87 void minute (long minute
);
90 long second (void) const;
93 void second (long second
);
96 long microsec (void) const;
99 void microsec (long microsec
);
102 long weekday (void) const;
105 void weekday (long wday
);
118 ACE_END_VERSIONED_NAMESPACE_DECL
120 #if defined (__ACE_INLINE__)
121 #include "ace/Date_Time.inl"
122 #endif /* __ACE_INLINE__ */
124 #include /**/ "ace/post.h"
125 #endif /* ACE_DATE_TIME_H */