diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2002-06-09 14:06:26 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2002-06-09 14:06:26 +0000 |
commit | 219a40255b9022d71e52101912ef3e2ca458c07e (patch) | |
tree | f39764dfbc2b091e038f5c9e40b8f6ab94082018 /ace/Date_Time.i | |
parent | bd085afd7cecc0d1dceb3fc0d1be433364f562a0 (diff) | |
download | ATCD-219a40255b9022d71e52101912ef3e2ca458c07e.tar.gz |
ChangeLogTag:Sun Jun 9 08:51:04 2002 Douglas C. Schmidt <schmidt@tango.doc.wustl.edu>
Diffstat (limited to 'ace/Date_Time.i')
-rw-r--r-- | ace/Date_Time.i | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/ace/Date_Time.i b/ace/Date_Time.i index a38346044db..7284d36c9d9 100644 --- a/ace/Date_Time.i +++ b/ace/Date_Time.i @@ -19,6 +19,7 @@ ACE_Date_Time::update (void) this->minute_ = tm_time.tm_min; this->second_ = tm_time.tm_sec; this->microsec_ = now.usec (); + this->wday_ = tm_time.tm_wday; } ASYS_INLINE @@ -36,14 +37,16 @@ ACE_Date_Time::ACE_Date_Time (long day, long hour, long minute, long second, - long microsec) + long microsec + long wday) : day_ (day), month_ (month), year_ (year), hour_ (hour), minute_ (minute), second_ (second), - microsec_ (microsec) + microsec_ (microsec), + wday_ (wday) { ACE_TRACE ("ACE_Date_Time::ACE_Date_Time"); } @@ -161,3 +164,19 @@ ACE_Date_Time::microsec (long microsec) ACE_TRACE ("ACE_Date_Time::microsec"); microsec_ = microsec; } + +// get wday +ASYS_INLINE long +ACE_Date_Time::weekday (void) const +{ + ACE_TRACE ("ACE_Date_Time::weekday"); + return weekday_; +} + +// set wday +ASYS_INLINE void +ACE_Date_Time::weekday (long wday) +{ + ACE_TRACE ("ACE_Date_Time::weekday"); + weekday_ = wday; +} |