3 //==========================================================================
7 * @author Tim Harrison (harrison@cs.wustl.edu) (and he's darn proud of this ;-))
9 //==========================================================================
11 #ifndef ACE_DATE_TIME_H
12 #define ACE_DATE_TIME_H
13 #include /**/ "ace/pre.h"
15 #include /**/ "ace/ACE_export.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
26 * @class ACE_Date_Time
28 * @brief System independent representation of date and time.
30 class ACE_Export ACE_Date_Time
33 /// Constructor initializes current time/date info.
36 /// Constructor initializes with the given ACE_Time_Value
37 explicit ACE_Date_Time (const ACE_Time_Value
& timevalue
);
39 /// Constructor with init values, no check for validity
40 /// Set/get portions of ACE_Date_Time, no check for validity.
41 ACE_Date_Time (long day
,
50 /// Update to the current time/date.
53 /// Update to the given ACE_Time_Value
54 void update (const ACE_Time_Value
& timevalue
);
57 long day (void) const;
63 long month (void) const;
66 void month (long month
);
69 long year (void) const;
72 void year (long year
);
75 long hour (void) const;
78 void hour (long hour
);
81 long minute (void) const;
84 void minute (long minute
);
87 long second (void) const;
90 void second (long second
);
93 long microsec (void) const;
96 void microsec (long microsec
);
99 long weekday (void) const;
102 void weekday (long wday
);
115 ACE_END_VERSIONED_NAMESPACE_DECL
117 #if defined (__ACE_INLINE__)
118 #include "ace/Date_Time.inl"
119 #endif /* __ACE_INLINE__ */
121 #include /**/ "ace/post.h"
122 #endif /* ACE_DATE_TIME_H */