summaryrefslogtreecommitdiff
path: root/ace/Date_Time.h
blob: b6a7d3b610cff86ba489e1949bc3b5d0fc90d5b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
/* -*- C++ -*- */
// $Id$

// ============================================================================
//
// = LIBRARY
//    ace
//
// = FILENAME
//    ACE_Date_Time.h
//
// = AUTHOR
//    Tim Harrison (harrison@cs.wustl.edu) (and he's darn proud of this ;-))
//
// ============================================================================

#ifndef ACE_DATE_TIME_H
#define ACE_DATE_TIME_H

#include "ace/ACE.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

class ACE_Export ACE_Date_Time
{
  // = TITLE
  //     System independent representation of date and time.
public:
  // constructor with init values, no check for validy
  ACE_Date_Time (long day = 0,
                 long month = 0,
                 long year = 0,
                 long hour = 0,
                 long minute = 0,
                 long second = 0,
                 long microsec = 0);
  // Set/get portions of ACE_Date_Time, no check for validity.

  long day (void);
  // Get day.

  void day (long day);
  // Set day.

  long month (void);
  // Get month.

  void month (long month);
  // Set month.

  long year (void);
  // Get year.

  void year (long year);
  // Set year.

  long hour (void);
  // Get hour.

  void hour (long hour);
  // Set hour.

  long minute (void);
  // Get minute.

  void minute (long minute);
  // Set minute.

  long second (void);
  // Get second.

  void second (long second);
  // Set second.

  long microsec (void);
  // Get microsec.

  void microsec (long microsec);
  // Set microsec.

private:
  long day_;
  long month_;
  long year_;
  long hour_;
  long minute_;
  long second_;
  long microsec_;
};

#if !defined (ACE_LACKS_INLINE_FUNCTIONS)
#include "ace/Date_Time.i"
#endif

#endif /* ACE_DATE_TIME_H */