WXP C++ Library Version 6.74.9
|
This class stores date and time information. More...
#include "../include/Date.h"
Public Member Functions | |
Date () | |
Date (int ryear, int rmonth, int rday, int rhour, int rmin, float rsec) | |
Date (DateVal &date) | |
Date (long secs) | |
Date (char *str) | |
int | operator> (const Date &date) |
int | operator< (const Date &date) |
void | operator+= (const int rsecs) |
int | init () |
bool | isSet () |
int | set (const char *str) |
int | set (int ryear, int rmonth, int rday, int rhour, int rmin, float rsec) |
int | set (Date &rdate) |
int | set (DateVal &date) |
int | set (DateVal &date, int roff, const char *tz) |
int | set (long secs) |
int | set () |
int | getVals (DateVal &date) |
DateVal | get () |
int | setYear (int val) |
int | getYear () |
int | getYear00 () |
int | setMonth (int val) |
int | getMonth () |
int | setDay (int val) |
int | getDay () |
int | setHour (int val) |
int | getHour () |
int | setMinute (int val) |
int | getMinute () |
int | setSecond (float val) |
int | setFractionalSecond (float val) |
float | getSecond () |
int | getSeconds () |
bool | isLeap () |
int | setDays (int days) |
int | setTime (int rhour, int rmin, float rsec) |
int | setTime (float rsecs) |
int | getDays () |
int | addYears (int years) |
int | addMonths (int months) |
int | addDays (int days) |
int | addHours (int hours) |
int | addMinutes (int mins) |
int | addSeconds (float secs) |
int | getDayOfWeek () |
int | getJulian () |
int | setJulian (int val) |
int | toString (String &str) |
int | toText (String &str) |
int | toText (const char *form, String &str) |
int | changeTimezone (int roff, const char *tz) |
int | adjustMinute (int rmonth, int rday, int rhour, int rmin) |
int | adjustMinute (int rday, int rhour, int rmin) |
int | adjustMinute (int rhour, int rmin) |
int | adjustSecond (int rhour, int rmin, int rsec) |
int | adjustHour (int rmonth, int rday, int rhour) |
int | adjustHour (int rday, int rhour) |
int | adjustHour (int rhour) |
int | fix () |
int | print () |
int | printSeconds () |
Static Public Member Functions | |
static long | getCurrentSeconds () |
static bool | isYearLeap (int year) |
static int | setJulian (int year, int jday, int &month, int &day) |
static int | getJulian (int year, int month, int day) |
This class stores date and time information.
Date::Date | ( | ) |
Constructor. Initializes values and sets to current time
References init().
Date::Date | ( | int | ryear, |
int | rmonth, | ||
int | rday, | ||
int | rhour, | ||
int | rmin, | ||
float | rsec | ||
) |
Date::Date | ( | DateVal & | date | ) |
Date::Date | ( | long | rsecs | ) |
Date::Date | ( | char * | str | ) |
int Date::addDays | ( | int | days | ) |
Adds days to date values and recomputes
days | Number of days to offset |
References WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::sec, and set().
Referenced by adjustHour(), adjustHour(), WXP::Figure::endPlot(), and WXP::NameConv::setLatest().
int Date::addHours | ( | int | hours | ) |
Adds hours to date values and recomputes
hours | Number of hours to offset |
References WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::sec, and set().
Referenced by WXP::DateTool::createLabel(), WXP::Figure::endPlot(), WXP::MosData::print(), WXP::MosUData::print(), WXP::MosData::printTable(), and WXP::NameConv::setLatest().
int Date::addMinutes | ( | int | mins | ) |
Adds minutes to date values and recomputes
mins | Number of minutes to offset |
References WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::sec, and set().
Referenced by WXP::Figure::endPlot().
int Date::addMonths | ( | int | months | ) |
Adds months to date values and recomputes
months | Number of months to offset |
References WXP::DateVal::month, and WXP::DateVal::year.
Referenced by adjustHour(), and WXP::NameConv::setLatest().
int Date::addSeconds | ( | float | rsec | ) |
Adds seconds to date values and recomputes
sec | Number of seconds to offset |
References WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::sec, and set().
Referenced by WXP::DateTool::createLabel(), WXP::DateTool::createLabel(), WXP::VectPlot::drawLabels(), WXP::GribFile::makeDatim(), WXP::WmoIngest::setAction(), WXP::Filename::setFile(), and WXP::NameConv::setLatest().
int Date::addYears | ( | int | years | ) |
Adds years to date values and recomputes
years | Number of years to offset |
References WXP::DateVal::year.
Referenced by WXP::NameConv::setLatest().
int Date::adjustHour | ( | int | rday, |
int | rhour | ||
) |
Adjusts the date according to new day/hour
rday | New day |
rhour | New hour |
References addDays(), addMonths(), WXP::DateVal::day, WXP::DateVal::hour, setDay(), setHour(), and WXP::DateVal::validate().
int Date::adjustHour | ( | int | rhour | ) |
Adjusts the date according to new hour
rhour | New hour |
References addDays(), WXP::DateVal::hour, setHour(), and WXP::DateVal::validate().
int Date::adjustHour | ( | int | rmonth, |
int | rday, | ||
int | rhour | ||
) |
Adjusts the date according to new month/day/hour
rmonth | New month |
rday | New day |
rhour | New hour |
References WXP::DateVal::month, setDay(), setHour(), setMonth(), WXP::DateVal::validate(), and WXP::DateVal::year.
Referenced by adjustMinute(), adjustMinute(), adjustMinute(), adjustSecond(), WXP::MetarTool::decode(), WXP::SaoTool::decode(), WXP::SynopTool::decode(), and WXP::UpaWmoFile::read().
int Date::adjustMinute | ( | int | rday, |
int | rhour, | ||
int | rmin | ||
) |
Adjusts the date according to new day/hour/minute
rday | New day |
rhour | New hour |
rmin | New minutes |
References adjustHour(), and setMinute().
int Date::adjustMinute | ( | int | rhour, |
int | rmin | ||
) |
Adjusts the date according to new hour/minute
rhour | New hour |
rmin | New minutes |
References adjustHour(), and setMinute().
int Date::adjustMinute | ( | int | rmonth, |
int | rday, | ||
int | rhour, | ||
int | rmin | ||
) |
Adjusts the date according to new month/day/hour/minute
rmonth | New month |
rday | New day |
rhour | New hour |
rmin | New minute |
References adjustHour(), and setMinute().
Referenced by WXP::SynopTool::decode(), WXP::SfcWxpFile::read(), WXP::SfcXmlFile::read(), WXP::WatchFile::read(), WXP::RedbookFile::readHeader(), and WXP::WmoIngest::setAction().
int Date::adjustSecond | ( | int | rhour, |
int | rmin, | ||
int | rsec | ||
) |
Adjusts the date according to new hour/minute/seconds
rhour | New hour |
rmin | New minutes |
rsec | New seconds |
References adjustHour(), setMinute(), and setSecond().
int Date::changeTimezone | ( | int | roff, |
const char * | tz | ||
) |
Changes the time zone parameters
roff | Time zone offset in seconds (EST = -18000) |
tz | String describing timezone (EST) |
References WXP::StrLib::copy(), WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::sec, and set().
Referenced by WXP::DateTool::createLabel().
int Date::fix | ( | ) |
Zero out missing values
References WXP::DateVal::day, WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::month, WXP::DateVal::sec, and WXP::DateVal::year.
Referenced by WXP::Filename::checkFile(), WXP::Filename::set(), WXP::Filename::set(), WXP::Filename::setBaseDate(), WXP::Filename::setFile(), WXP::Filename::setFile(), and WXP::Filename::setFile().
DateVal Date::get | ( | ) |
Gets the date values
References WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::DateVal::month, WXP::DateVal::sec, and WXP::DateVal::year.
Referenced by WXP::NameConv::encode(), WXP::Filename::getDateval(), WXP::Grid::getDateVal(), WXP::LightData::getDateval(), WXP::LightFile::read(), and WXP::WmoIngest::setAction().
|
static |
This function returns the current time in seconds
Referenced by set().
|
inline |
Gets the month
References WXP::DateVal::day.
Referenced by WXP::DateTool::createLabel(), WXP::NameConv::encode(), WXP::SfcUniFile::open(), WXP::LightData::print(), WXP::MosData::print(), WXP::MosUData::print(), WXP::MosData::printTable(), WXP::WmoIngest::sendPAN(), and WXP::NameConv::setLatest().
int Date::getDayOfWeek | ( | ) |
int Date::getDays | ( | ) |
Gets number of days since 1/1/1970
References WXP::DateVal::day, WXP::DateVal::month, WXP::DateVal::num_day, and WXP::DateVal::year.
|
inline |
Gets the hour
References WXP::DateVal::hour.
Referenced by WXP::SfcDataTool::compute(), WXP::DateTool::createLabel(), WXP::MetarTool::decode(), WXP::MosUFile::decodeETA(), WXP::MosFile::decodeGFS(), WXP::MosFile::decodeGFSX(), WXP::MosFile::decodeNAM(), WXP::MosFile::decodeNGM(), WXP::LightPlot::draw(), WXP::RadMask::getGrids(), WXP::SfcCdfFile::open(), WXP::SfcUniFile::open(), WXP::SfcData::outString(), WXP::LightData::print(), WXP::MosData::print(), WXP::MosUData::print(), WXP::SfcData::print(), WXP::MosData::printTable(), WXP::WmoIngest::process(), WXP::SfcWxpFile::read(), WXP::WmoIngest::sendPAN(), and WXP::NameConv::setLatest().
int Date::getJulian | ( | ) |
Gets the julian day
Referenced by WXP::NameConv::encode(), and WXP::WmoIngest::setAction().
|
static |
Computes Julian day
year | Year |
month | Month |
day | Day |
References WXP::DateVal::day, isYearLeap(), WXP::DateVal::month, WXP::DateVal::num_day, WXP::DateVal::num_day_leap, and WXP::DateVal::year.
|
inline |
Gets the minute
References WXP::DateVal::min.
Referenced by WXP::SfcDataTool::compute(), WXP::DateTool::createLabel(), WXP::RcmDecode::decode(), WXP::LightPlot::draw(), WXP::RcmPlot::getDate(), WXP::RcmPlot::getInitDate(), WXP::LightData::getMinute(), WXP::GribFile::makeDatim(), WXP::SfcUniFile::open(), WXP::SfcData::outString(), WXP::LightData::print(), WXP::SfcData::print(), WXP::WmoIngest::process(), WXP::WmoIngest::sendPAN(), and WXP::NameConv::setLatest().
|
inline |
Gets the month
References WXP::DateVal::month.
Referenced by WXP::DateTool::createLabel(), WXP::NameConv::encode(), WXP::SfcUniFile::open(), WXP::LightData::print(), WXP::WmoIngest::sendPAN(), and WXP::NameConv::setLatest().
|
inline |
Gets the seconds
References WXP::DateVal::sec.
Referenced by WXP::DateTool::createLabel(), WXP::LightPlot::draw(), WXP::LightData::print(), WXP::WmoIngest::process(), and WXP::WmoIngest::sendPAN().
int Date::getSeconds | ( | ) |
Gets the total seconds since 1/1/1970 (Unix time)
Referenced by WXP::Figure::callback(), WXP::FrontPlot::draw(), WXP::LightPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::RadMask::getGrids(), WXP::AreaFile::getImageDate(), WXP::LightData::getSeconds(), WXP::MosData::getSeconds(), WXP::MosUData::getSeconds(), WXP::DateTool::getSeconds(), WXP::SfcUniFile::open(), WXP::WarnPlot::readFile(), WXP::WatchPlot::readFile(), WXP::DateRange::set(), WXP::Filename::setFile(), WXP::NameConv::setLatest(), WXP::WmoIngest::terminate(), and WXP::DateRange::valid().
int Date::getVals | ( | DateVal & | date | ) |
Gets the date values
date | DateVal structure to receive values |
References WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::DateVal::month, WXP::DateVal::sec, and WXP::DateVal::year.
Referenced by WXP::SatCdfFile::readHeader().
|
inline |
Gets the year
References WXP::DateVal::year.
Referenced by WXP::SfcUniFile::open(), WXP::LightData::print(), WXP::WmoIngest::sendPAN(), and WXP::NameConv::setLatest().
int Date::getYear00 | ( | ) |
Gets the year (from 1900)
References WXP::Const::MISS, and WXP::DateVal::year.
Referenced by WXP::DateTool::createLabel().
int Date::init | ( | ) |
Initializes values
References WXP::DateVal::init(), and WXP::Const::MISS.
Referenced by Date(), Date(), Date(), Date(), Date(), WXP::DateTool::decode(), WXP::LightPlot::draw(), WXP::CityPlot::getDate(), WXP::CityPlot::getInitDate(), WXP::MapPlot::getInitDate(), WXP::ThermPlot::getInitDate(), WXP::XSectionPlot::getInitDate(), WXP::Figure::init(), WXP::Grid::init(), WXP::HurPlot::init(), WXP::Image::init(), WXP::LightPlot::init(), WXP::MdrData::init(), WXP::NidsInfo::init(), WXP::RcmData::init(), WXP::SfcData::init(), WXP::UpaData::init(), WXP::UpaRawinData::init(), WXP::Vtec::init(), WXP::WarnPlot::init(), WXP::WatchPlot::init(), set(), set(), set(), set(), and setTime().
bool Date::isLeap | ( | ) |
Checks if year a leap year
References isYearLeap(), and WXP::DateVal::year.
Referenced by setDays().
bool Date::isSet | ( | ) |
Checks to see if date values are set
References WXP::Const::MISS.
Referenced by WXP::DateTool::createLabel(), WXP::HurPlot::draw(), WXP::LightPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::Figure::endPlot(), WXP::RcmPlot::getDate(), WXP::RcmPlot::getInitDate(), WXP::SfcWxpFile::open(), WXP::WmoIngest::setAction(), WXP::HurPlot::setFilename(), WXP::WarnPlot::setFilename(), and WXP::NameConv::setLatest().
|
static |
Checks for leap year given a year
year | Year (yyyy) |
References WXP::DateVal::year.
Referenced by getJulian(), isLeap(), and setJulian().
int Date::print | ( | ) |
Prints date values to stdout. The format is "\%H:\%M:\%S\%Z \%e \%b \%Y"
References WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::month, WXP::DateVal::sec, and WXP::DateVal::year.
Referenced by WXP::UpaDecode::decode(), WXP::UpaDecode::decode(), WXP::HurPlot::draw(), WXP::LightPlot::draw(), WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::NameConv::encode(), WXP::Filename::print(), WXP::Image::print(), WXP::Lev2Info::print(), WXP::NameConvFile::print(), WXP::NidsData::print(), WXP::NidsInfo::print(), WXP::SfcData::print(), WXP::Vtec::print(), WXP::WatchData::print(), WXP::DateTool::print(), and WXP::NameConv::setLatest().
int Date::printSeconds | ( | ) |
Prints the internal seconds (since 1/1/70)
int Date::set | ( | ) |
Sets the date values based on current time
References getCurrentSeconds(), and set().
Referenced by addDays(), addHours(), addMinutes(), addSeconds(), changeTimezone(), Date(), Date(), Date(), Date(), set(), and set().
int Date::set | ( | const char * | str | ) |
Sets the date values based on string value
str | Date as a string "yyyymmddhhnnss.sss" or "yyyy-mm-ddThh:mm:ss.s" |
References WXP::DateVal::day, WXP::StrLib::equal(), WXP::DateVal::hour, init(), WXP::DateVal::min, WXP::DateVal::month, WXP::DateVal::sec, set(), WXP::DateVal::validate(), and WXP::DateVal::year.
Referenced by WXP::Figure::callback(), WXP::Filename::checkFile(), WXP::NameConv::decode(), WXP::Vtec::decode(), WXP::DateTool::decode(), WXP::RcmFile::decode(), WXP::MosFile::decodeGFS(), WXP::MosFile::decodeGFSX(), WXP::MosFile::decodeLAMP(), WXP::MosFile::decodeNAM(), WXP::MosFile::decodeNGM(), WXP::NameConv::encode(), WXP::Figure::endPlot(), WXP::DateTool::getCurrent(), WXP::DateTool::getCurrent(), WXP::AreaFile::getImageDate(), WXP::DateTool::getSeconds(), WXP::GribFile::makeDatim(), WXP::RedbookFile::open(), WXP::GribFile::open(), WXP::WmoIngest::printLog(), WXP::WmoIngest::process(), WXP::MosUFile::read(), WXP::KavradFile::readHeader(), WXP::NowradFile::readHeader(), WXP::WmoIngest::sendPAN(), WXP::WmoIngest::setAction(), WXP::Grid::setDate(), WXP::LightData::setDate(), WXP::LightData::setDate(), WXP::NameConv::setLatest(), WXP::HurPlot::setValidDate(), WXP::LightPlot::setValidDate(), WXP::WarnPlot::setValidDate(), and WXP::WatchPlot::setValidDate().
int Date::set | ( | DateVal & | date | ) |
Sets the date values using DateVal structure
References WXP::DateVal::day, WXP::DateVal::hour, init(), WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::month, WXP::DateVal::sec, setJulian(), WXP::DateVal::validate(), and WXP::DateVal::year.
int Date::set | ( | DateVal & | date, |
int | roff, | ||
const char * | tz | ||
) |
Sets the date values with DateVal values and timezone
date | Date values from DateVal structure. |
roff | Offset in seconds from UTC of timezone (-18000 for EST) |
tz | Character string describing timezone (EST) |
References WXP::StrLib::copy(), WXP::DateVal::day, WXP::DateVal::hour, init(), WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::month, WXP::DateVal::sec, setJulian(), WXP::DateVal::validate(), and WXP::DateVal::year.
int Date::set | ( | int | ryear, |
int | rmonth, | ||
int | rday, | ||
int | rhour, | ||
int | rmin, | ||
float | rsec | ||
) |
Sets the date values individually.
ryear | The year (yyyy or 1900+yyy) |
rmonth | The month (1-12) |
rday | The day (1-31) |
rhour | The hour (0-23) |
rmin | The minute (0-59) |
rsec | The second (0-59.99999) |
References WXP::DateVal::day, WXP::DateVal::hour, init(), WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::month, WXP::DateVal::sec, setJulian(), WXP::DateVal::validate(), and WXP::DateVal::year.
int Date::set | ( | long | rsecs | ) |
Sets the date values based on time in seconds
rsecs | Seconds since 1/1/1970 (Unix time) |
References WXP::DateVal::day, WXP::DateVal::hour, WXP::DateVal::min, WXP::DateVal::month, WXP::DateVal::sec, and WXP::DateVal::year.
int Date::setDay | ( | int | val | ) |
Sets the day
val | Day (1-31) |
References WXP::DateVal::day, and WXP::Const::MISS.
Referenced by adjustHour(), adjustHour(), and WXP::NameConv::setLatest().
int Date::setDays | ( | int | days | ) |
Sets date values using days since 1/1/1970
days | Days since 1/1/1970 |
References WXP::DateVal::day, isLeap(), WXP::DateVal::month, WXP::DateVal::num_day, WXP::DateVal::num_day_leap, and WXP::DateVal::year.
Referenced by WXP::LritFile::getHeader(), and WXP::LightFile::read().
int Date::setFractionalSecond | ( | float | val | ) |
Sets the fractional seconds
val | Fractional seconds (0-0.999999) |
References WXP::Const::MISS, and WXP::DateVal::sec.
Referenced by WXP::LightData::setFsec().
int Date::setHour | ( | int | val | ) |
Sets the hour
val | Hour (0-23) |
References WXP::DateVal::hour, and WXP::Const::MISS.
Referenced by adjustHour(), adjustHour(), adjustHour(), WXP::LightFile::read(), and WXP::NameConv::setLatest().
int Date::setJulian | ( | int | val | ) |
Sets day of year from Julian day
val | Julian day |
References WXP::DateVal::day, WXP::DateVal::month, setJulian(), and WXP::DateVal::year.
Referenced by WXP::NameConv::decode(), WXP::SatCdfFile::readHeader(), set(), set(), set(), and setJulian().
|
static |
Sets day of year from Julian day
year | Year to use (test for leap year) |
jday | Julian day (1-366) |
month | Month of year |
day | Day of year |
References WXP::DateVal::day, isYearLeap(), WXP::DateVal::month, WXP::DateVal::num_day, WXP::DateVal::num_day_leap, and WXP::DateVal::year.
int Date::setMinute | ( | int | val | ) |
Sets the minute
val | Minute (0-59) |
References WXP::DateVal::min, and WXP::Const::MISS.
Referenced by adjustMinute(), adjustMinute(), adjustMinute(), adjustSecond(), WXP::RcmDecode::decode(), WXP::MetarTool::decode(), WXP::SaoTool::decode(), WXP::SynopTool::decode(), WXP::RcmPlot::getDate(), WXP::RcmPlot::getInitDate(), WXP::LightFile::read(), WXP::MdrImage::readFile(), and WXP::NameConv::setLatest().
int Date::setMonth | ( | int | val | ) |
Sets the month
val | Month (1-12) |
References WXP::Const::MISS, and WXP::DateVal::month.
Referenced by adjustHour(), and WXP::NameConv::setLatest().
int Date::setSecond | ( | float | val | ) |
Sets the second
val | Second (0-59.9999) |
References WXP::Const::MISS, and WXP::DateVal::sec.
Referenced by adjustSecond(), and WXP::LightFile::read().
int Date::setTime | ( | float | rsecs | ) |
Sets time using seconds since midnight
rsecs | Seconds since midnight |
References WXP::DateVal::hour, WXP::DateVal::min, and WXP::DateVal::sec.
int Date::setTime | ( | int | rhour, |
int | rmin, | ||
float | rsec | ||
) |
Sets the time values only
rhour | The hour (0-23) |
rmin | The minute (0-59) |
rsec | The second (0-59.99999) |
References WXP::DateVal::hour, init(), WXP::DateVal::min, WXP::DateVal::sec, and WXP::DateVal::validate().
Referenced by WXP::LritFile::getHeader().
int Date::setYear | ( | int | val | ) |
Sets the year
val | Year (yyyy or 1900+yyy) |
References WXP::Const::MISS, and WXP::DateVal::year.
int Date::toString | ( | String & | str | ) |
Output date values to string
str | Output string using format "%Y%m%d%H%M%S" |
References toText().
int Date::toText | ( | const char * | form, |
String & | str | ||
) |
Creates a string from the date values
form | Format string %a = day of week (SUN-SAT) %b = month (JAN-DEC) %Y = year (yyyy) %y = year (yy) %m = month (mm) %d = day (dd) %e = day ( d or dd) %j = julian day (001-366) %H = hour (00-23) %l = hour (00-12) %p = AM/PM %M = minute (00-59) %S = second (00-59) %s = second (00.0000-59.9999) %u = day of week (0-6) %Z = time zone string |
str | Output string |
References WXP::String::append(), WXP::String::aprintf(), WXP::String::clear(), WXP::DateVal::day, WXP::StrLib::equal(), WXP::DateVal::hour, WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::month, WXP::DateVal::sec, and WXP::DateVal::year.
int Date::toText | ( | String & | str | ) |
Output date values to string
str | Output string using format "%H:%M:%S%Z %e %b %Y" |
References WXP::DateVal::hour, WXP::DateVal::min, WXP::Const::MISS, WXP::DateVal::sec, and toText().
Referenced by WXP::WarnPlot::draw(), WXP::WatchPlot::draw(), WXP::DateTool::getCurrent(), WXP::DateTool::getCurrent(), WXP::GribFile::makeDatim(), WXP::WmoIngest::printLog(), toString(), and toText().