OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
MJDDateTime.cpp
Go to the documentation of this file.
1 //----------------------------------------------------------------------------
2 //
3 // "Copyright Centre National d'Etudes Spatiales"
4 //
5 // License: LGPL
6 //
7 // See LICENSE.txt file in the top level directory for more details.
8 //
9 //----------------------------------------------------------------------------
10 // $Id$
11 
12 #include <otb/MJDDateTime.h>
13 
14 namespace ossimplugins
15 {
16 
17 
19  _day(0),
20  _second(0),
21  _microsecond(0)
22 {
23 }
24 
26 {
27 }
28 
30  _day(rhs._day),
31  _second(rhs._second),
32  _microsecond(rhs._microsecond)
33 {
34 }
35 
36 MJDDateTime::MJDDateTime(long day, unsigned long second, unsigned long microsecond):
37  _day(day),
38  _second(second),
39  _microsecond(microsecond)
40 {
41 }
42 
44 {
45  _day = rhs._day;
46  _second = rhs._second;
48 
49  return *this;
50 }
51 }
MJDDateTime & operator=(const MJDDateTime &rhs)
Affectation operator.
Definition: MJDDateTime.cpp:43
This class represents an MJD date (Modified Julian date)
Definition: MJDDateTime.h:25
unsigned long _microsecond
Definition: MJDDateTime.h:84
~MJDDateTime()
Destructor.
Definition: MJDDateTime.cpp:25