|
OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimDate.h>
Public Member Functions | |
| ossimTime (int tmfmt=ossimLocalTm::timefmt) | |
| ossimTime (ossimTime const &t, int tmfmt=ossimLocalTm::timefmt) | |
| ossimTime (time_t t, int tmfmt=ossimLocalTm::timefmt) | |
| int | fmt (int f) |
| int | fmt (void) const |
| std::ostream & | print (std::ostream &os) const |
Public Member Functions inherited from ossimLocalTm | |
| ossimLocalTm (time_t t=0) | |
| ossimLocalTm (tm const &t) | |
| ossimLocalTm (const ossimLocalTm &t) | |
| ossimLocalTm & | operator= (tm const &t) |
| ossimLocalTm & | operator= (const ossimLocalTm &t) |
| operator time_t (void) const | |
| int | isValid (void) const |
| void | now () |
| int | compare (ossimLocalTm const &t) const |
| int | compare (std::time_t const tt) const |
| std::ostream & | print (std::ostream &os, int df=datefmt, int tf=timefmt) const |
| std::ostream & | printTime (std::ostream &os, int f=timefmt) const |
| std::ostream & | printDate (std::ostream &os, int f=datefmt) const |
| std::ostream & | dump (std::ostream &os) const |
| method to dump all the data members. More... | |
| int | getYear () const |
| int | getShortYear () const |
| int | getMonth () const |
| int | getDay () const |
| double | getJulian () const |
| double | getModifiedJulian () const |
| ossimLocalTm & | setDay (int day) |
| ossimLocalTm & | setMonth (int month) |
| ossimLocalTm & | setYear (int year) |
| ossimLocalTm & | setDateFromJulian (double jd) |
| ossimLocalTm & | setDateFromModifiedJulian (double mjd) |
| void | setFractionalDay (double fractionalDay) |
| int | getHour () const |
| int | getMin () const |
| int | getSec () const |
| double | getFractionalSecond () const |
| ossimLocalTm & | setHour (int h) |
| ossimLocalTm & | setMin (int m) |
| ossimLocalTm & | setSec (int s) |
| ossimLocalTm & | setFloatSec (double s) |
| ossimLocalTm & | setFractionalSecond (double fractS) |
| time_t | getTicks () const |
| getTicks() will call getEpoc. More... | |
| time_t | getEpoc () const |
| void | addSeconds (ossim_float64 n) |
| void | addMinutes (ossim_float64 n) |
| void | addHours (ossim_float64 n) |
| void | addDays (ossim_float64 n) |
| ossim_float64 | deltaInSeconds (const ossimLocalTm &d) const |
| ossim_float64 | deltaInMinutes (const ossimLocalTm &d) const |
| ossim_float64 | delatInHours (const ossimLocalTm &d) const |
| ossim_float64 | deltaInDays (const ossimLocalTm &d) const |
| ossimLocalTm | convertToGmt () const |
| void | setTimeNoAdjustmentGivenEpoc (time_t ticks) |
| Will not adjust for timezone. More... | |
| void | setTimeGivenEpoc (time_t ticks) |
| Will adjust for timezone. More... | |
| bool | setIso8601 (const std::string &timeString, bool shiftToGmtOffsetZero=false) |
| ossimRefPtr< ossimXmlNode > | saveXml () const |
| bool | loadXml (ossimRefPtr< ossimXmlNode > dateNode) |
Private Attributes | |
| int | _fmt |
Friends | |
| OSSIM_DLL std::ostream & | operator<< (std::ostream &out, const ossimTime &src) |
Additional Inherited Members | |
Public Types inherited from ossimLocalTm | |
| enum | ossimLocalTmFormat { ossimLocalTmFormatYear = (int)0x0001, ossimLocalTmFormatYearShort = (int)0x0002, ossimLocalTmFormatPadYear = (int)0x0004, ossimLocalTmFormatZeroYear = (int)0x0008, ossimLocalTmFormatMonth = (int)0x0010, ossimLocalTmFormatMonText = (int)0x0020, ossimLocalTmFormatPadMon = (int)0x0040, ossimLocalTmFormatZeroMon = (int)0x0080, ossimLocalTmFormatDay = (int)0x0100, ossimLocalTmFormatDayOfWeek = (int)0x0200, ossimLocalTmFormatPadDay = (int)0x0400, ossimLocalTmFormatZeroDay = (int)0x0800, ossimLocalTmFormatDMY = (int)0x0111, ossimLocalTmFormatPadDMY = (int)0x0444, ossimLocalTmFormatZeroDMY = (int)0x0888, ossimLocalTmFormatYearFirst = (int)0x1000, ossimLocalTmFormatMonFirst = (int)0x2000, ossimLocalTmFormatSepChar = (int)0x4000, ossimLocalTmFormatSepSpace = (int)0x8000, ossimLocalTmFormatInternational, ossimLocalTmFormatIntlShort, ossimLocalTmFormatUsa, ossimLocalTmFormatEnglish, ossimLocalTmFormatJapanese, ossimLocalTmFormatFull } |
| enum | ossimTimeFormat { ossimTimeFormatSecs = (int)0x0001, ossimTimeFormatZeroSecs = (int)0x0002, ossimTimeFormatPadSecs = (int)0x0004, ossimTimeFormatSecsAll = (int)0x0007, ossimTimeFormatTimeZone = (int)0x0008, ossimTimeFormatMins = (int)0x0010, ossimTimeFormatZeroMins = (int)0x0020, ossimTimeFormatPadMins = (int)0x0040, ossimTimeFormatMinsAll = (int)0x0070, ossimTimeFormatTZNumeric = (int)0x0080, ossimTimeFormatHour = (int)0x0100, ossimTimeFormatZeroHour = (int)0x0200, ossimTimeFormatPadHour = (int)0x0400, ossimTimeFormatHourAll = (int)0x0700, ossimTimeFormat24hour = (int)0x0800, ossimTimeFormatSepChar = (int)0x1000, ossimTimeFormatSepSpace = (int)0x2000, ossimTimeFormatSepAbbrev = (int)0x4000, ossimTimeFormatAmPm = (int)0x8000, ossimTimeFormatInternational, ossimTimeFormatShortTime, ossimTimeFormatClockTime, ossimTimeFormatLongTime, ossimTimeFormatMillitary = (int)(ossimTimeFormatHourAll|ossimTimeFormatMinsAll|ossimTimeFormat24hour) } |
Static Public Member Functions inherited from ossimLocalTm | |
| static void | extractHmsFromFractionalDay (double fractionalDay, int &h, int &m, int &s, double &fractionalSecond) |
Static Public Attributes inherited from ossimLocalTm | |
| static char | timech = ':' |
| static char | datech = '/' |
| static int | datefmt = ossimLocalTm::ossimLocalTmFormatFull |
| static int | timefmt = ossimLocalTm::ossimTimeFormatInternational |
Protected Member Functions inherited from ossimLocalTm | |
| void | tSfx (std::ostream &os, int fmt, char ch) const |
| void | pHour (std::ostream &os, int fmt) const |
| void | pMins (std::ostream &os, int fmt) const |
| void | pSecs (std::ostream &os, int fmt) const |
| void | dSfx (std::ostream &os, int fmt) const |
| void | pDate (std::ostream &os, int fmt) const |
| void | pMonth (std::ostream &os, int fmt) const |
| void | pYear (std::ostream &os, int fmt) const |
| void | setTimezoneOffsetFromGmt () |
Protected Attributes inherited from ossimLocalTm | |
| double | theFractionalSecond |
| int | m_timezoneOffset |
Static Protected Attributes inherited from ossimLocalTm | |
| static std::mutex | m_mutex |
Definition at line 261 of file ossimDate.h.
| ossimTime::ossimTime | ( | int | tmfmt = ossimLocalTm::timefmt | ) |
Definition at line 1131 of file ossimDate.cpp.
| ossimTime::ossimTime | ( | ossimTime const & | t, |
| int | tmfmt = ossimLocalTm::timefmt |
||
| ) |
Definition at line 1135 of file ossimDate.cpp.
| ossimTime::ossimTime | ( | time_t | t, |
| int | tmfmt = ossimLocalTm::timefmt |
||
| ) |
Definition at line 1141 of file ossimDate.cpp.
| int ossimTime::fmt | ( | int | f | ) |
Definition at line 1146 of file ossimDate.cpp.
References _fmt.
| int ossimTime::fmt | ( | void | ) | const |
Definition at line 1151 of file ossimDate.cpp.
References _fmt.
| std::ostream & ossimTime::print | ( | std::ostream & | os | ) | const |
Definition at line 1156 of file ossimDate.cpp.
References _fmt, and ossimLocalTm::printTime().
Referenced by operator<<().
Definition at line 1127 of file ossimDate.cpp.
|
private |
Definition at line 276 of file ossimDate.h.
1.8.14