![]() |
OTB
9.1.1
Orfeo Toolbox
|
#include <otbDateTime.h>
Inheritance diagram for otb::MetaData::TimePoint:
Collaboration diagram for otb::MetaData::TimePoint:Public Types | |
| using | InternalTimePointType = details::InternalTimePointType |
Public Member Functions | |
| std::ostream & | Display (std::ostream &os) const |
| unsigned int | GetDay () const |
| unsigned int | GetHour () const |
| double | GetJulianDay () const |
| unsigned int | GetMinute () const |
| double | GetModifiedJulianDay () const |
| unsigned int | GetMonth () const |
| double | GetSecond () const |
| int | GetYear () const |
| std::istream & | Read (std::istream &is, const std::string &format=details::timePointFormat) |
| TimePoint () | |
| TimePoint (InternalTimePointType const &t) | |
Static Public Member Functions | |
| template<typename U , typename V > | |
| static U | diff (V const &lhs, V const &rhs) |
Private Attributes | |
| InternalTimePointType | m_Time |
Friends | |
| TimePoint & | operator+= (TimePoint &u, Duration const &v) |
| TimePoint & | operator-= (TimePoint &u, Duration const &v) |
| bool | operator< (TimePoint const &lhs, TimePoint const &rhs) |
| bool | operator== (TimePoint const &lhs, TimePoint const &rhs) |
Represents a point in Time.
Definition at line 94 of file otbDateTime.h.
Definition at line 100 of file otbDateTime.h.
|
inline |
Definition at line 102 of file otbDateTime.h.
|
inline |
Definition at line 103 of file otbDateTime.h.
|
inlinestatic |
Definition at line 108 of file otbDateTime.h.
| std::ostream& otb::MetaData::TimePoint::Display | ( | std::ostream & | os | ) | const |
| unsigned int otb::MetaData::TimePoint::GetDay | ( | ) | const |
Return the calendar day corresponding to the time point (from 1 to 31)
| unsigned int otb::MetaData::TimePoint::GetHour | ( | ) | const |
Return the hour of the day corresponding to the time point (from 0 to 23)
| double otb::MetaData::TimePoint::GetJulianDay | ( | ) | const |
Return the julian day corresponding to the time point
| unsigned int otb::MetaData::TimePoint::GetMinute | ( | ) | const |
Return the minute of the hour of the day corresponding to the time point (from 0 to 59)
| double otb::MetaData::TimePoint::GetModifiedJulianDay | ( | ) | const |
Return the modified julian day corresponding to the time point
| unsigned int otb::MetaData::TimePoint::GetMonth | ( | ) | const |
Return the month of the year corresponding to the time point (from 1 to 12)
| double otb::MetaData::TimePoint::GetSecond | ( | ) | const |
Return the fractional second of the minute of the hour of the day corresponding to the time point (from 0 and inferior to 60)
| int otb::MetaData::TimePoint::GetYear | ( | ) | const |
Return the year corresponding to the time point
| std::istream& otb::MetaData::TimePoint::Read | ( | std::istream & | is, |
| const std::string & | format = details::timePointFormat |
||
| ) |
Definition at line 114 of file otbDateTime.h.
Definition at line 119 of file otbDateTime.h.
|
private |
Definition at line 152 of file otbDateTime.h.
1.8.17