CARMA C++
Date.h
1 #ifndef DATE_H
2 #define DATE_H
3 
11 // Include the C-style struct and method definitions this class is
12 // based on
13 
14 #include "carma/szaarrayutils/astrom.h"
15 
16 namespace sza {
17  namespace antenna {
18  namespace control {
19 
20 
26  class Date {
27 
28  public:
29 
34  Date();
35 
39  void reset();
40 
46  void convertMjdUtcToDate(double utc);
47 
51  int getYear();
52 
53  private:
54 
58  sza::array::Date date_;
59 
60  }; // End class Date
61 
62  }; // End namespace control
63  }; // End namespace antenna
64 }; // End namespace sza
65 
66 #endif // End #ifndef
void reset()
Intialize the date fields to zero.
int getYear()
Return the year.
Date()
Constructor function just intializes the date fields by calling reset(), below.
void convertMjdUtcToDate(double utc)
Convert from MJD to broken-down calendar date.
Class to encapsulate a date.
Definition: Date.h:26