26 #ifndef __TERRALIB_DATATYPE_INTERNAL_TIMEDURATION_H 27 #define __TERRALIB_DATATYPE_INTERNAL_TIMEDURATION_H 33 #include <boost/cstdint.hpp> 34 #include <boost/date_time/posix_time/posix_time.hpp> 63 TimeDuration(
long hours,
long minutes,
long seconds, boost::int64_t fracSeconds = 0);
77 const boost::posix_time::time_duration&
getTimeDuration()
const {
return m_timeDuration; }
91 long getHours()
const {
return m_timeDuration.hours(); }
98 long getMinutes()
const {
return m_timeDuration.minutes(); }
173 std::string toString()
const;
195 #endif // __TERRALIB_DATATYPE_INTERNAL_TIMEDURATION_H boost::int64_t getFractionalSeconds() const
It returns the fractional seconds.
TEDATAACCESSEXPORT te::da::Expression * operator<(const te::da::Expression &e1, const te::da::Expression &e2)
boost::posix_time::time_duration m_timeDuration
The internal time duration information.
An abstract class for date and time types.
TEDATAACCESSEXPORT te::da::Expression * operator==(const te::da::Expression &e1, const te::da::Expression &e2)
TEDATAACCESSEXPORT te::da::Expression * operator!=(const te::da::Expression &e1, const te::da::Expression &e2)
boost::posix_time::time_duration & getTimeDuration()
It returns the boost time duration type.
#define TEDATATYPEEXPORT
You can use this macro in order to export/import classes and functions from this module.
DateTimeType getDateTimeType() const
It returns the subtype of the date and time type.
TEDATAACCESSEXPORT te::da::Expression * operator>(const te::da::Expression &e1, const te::da::Expression &e2)
A base class for values that can be retrieved from the data access module.
long getHours() const
It returns the hours of a day - from 0 to 23.
A class to represent time duration with nano-second/micro-second resolution.
DateTimeType
The subtype of date and time type, based on ISO 8621.
const boost::posix_time::time_duration & getTimeDuration() const
It returns the boost time duration type.
long getSeconds() const
It returns the seconds of a minute - from 0 to 59.
long getMinutes() const
It returns the minutes of a hour - from 0 to 59.