OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimDate.h>
Public Member Functions | |
ossimDate (int datefmt=ossimLocalTm::datefmt) | |
ossimDate (ossimLocalTm const &t, int dtfmt=ossimLocalTm::datefmt) | |
ossimDate (time_t t, int dtfmt=ossimLocalTm::datefmt) | |
ossimDate (int month, int day, int year, int dtfmt=ossimLocalTm::datefmt) | |
int | fmt (int f) |
int | fmt (void) const |
std::ostream & | print (std::ostream &os) const |
![]() | |
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 ossimDate &src) |
Additional Inherited Members | |
![]() | |
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 void | extractHmsFromFractionalDay (double fractionalDay, int &h, int &m, int &s, double &fractionalSecond) |
![]() | |
static char | timech = ':' |
static char | datech = '/' |
static int | datefmt = ossimLocalTm::ossimLocalTmFormatFull |
static int | timefmt = ossimLocalTm::ossimTimeFormatInternational |
![]() | |
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 () |
![]() | |
double | theFractionalSecond |
int | m_timezoneOffset |
![]() | |
static std::mutex | m_mutex |
Definition at line 241 of file ossimDate.h.
ossimDate::ossimDate | ( | int | datefmt = ossimLocalTm::datefmt | ) |
Definition at line 1084 of file ossimDate.cpp.
ossimDate::ossimDate | ( | ossimLocalTm const & | t, |
int | dtfmt = ossimLocalTm::datefmt |
||
) |
Definition at line 1088 of file ossimDate.cpp.
ossimDate::ossimDate | ( | time_t | t, |
int | dtfmt = ossimLocalTm::datefmt |
||
) |
Definition at line 1093 of file ossimDate.cpp.
ossimDate::ossimDate | ( | int | month, |
int | day, | ||
int | year, | ||
int | dtfmt = ossimLocalTm::datefmt |
||
) |
Definition at line 1097 of file ossimDate.cpp.
References ossimLocalTm::setDay(), ossimLocalTm::setFractionalSecond(), ossimLocalTm::setHour(), ossimLocalTm::setMin(), ossimLocalTm::setMonth(), ossimLocalTm::setSec(), and ossimLocalTm::setYear().
int ossimDate::fmt | ( | int | f | ) |
Definition at line 1112 of file ossimDate.cpp.
References _fmt.
int ossimDate::fmt | ( | void | ) | const |
Definition at line 1117 of file ossimDate.cpp.
References _fmt.
std::ostream & ossimDate::print | ( | std::ostream & | os | ) | const |
Definition at line 1122 of file ossimDate.cpp.
References _fmt, and ossimLocalTm::printDate().
Referenced by operator<<().
Definition at line 20 of file ossimDate.cpp.
|
private |
Definition at line 258 of file ossimDate.h.