WXP C++ Library Version 6.74.9
|
This class manipulates timezones. More...
#include "../include/Timezone.h"
Public Member Functions | |
Timezone (const char *str) | |
Timezone () | |
int | set (const char *str) |
int | init () |
bool | isSet () |
int | getPM () |
int | getOffset () |
const char * | getName () |
int | print () |
This class manipulates timezones.
Timezone::Timezone | ( | const char * | str | ) |
Timezone::Timezone | ( | ) |
Constructor. Initializes the class values
References init().
const char * Timezone::getName | ( | ) |
Returns the name of the zone
Referenced by WXP::DateTool::createLabel().
int Timezone::getOffset | ( | ) |
Returns timezone offset from UTC in seconds
Referenced by WXP::DateTool::createLabel().
int Timezone::getPM | ( | ) |
Gets the PM setting
Referenced by WXP::DateTool::createLabel().
int Timezone::init | ( | ) |
Initializes the object
References WXP::Const::MISS.
Referenced by WXP::MosPlot::init(), WXP::SfcPlot::init(), WXP::UpaPlot::init(), set(), and Timezone().
bool Timezone::isSet | ( | ) |
Returns true if zone is set
References WXP::Const::MISS.
Referenced by WXP::DateTool::createLabel().
int Timezone::print | ( | ) |
Prints object parameters
Referenced by WXP::SfcPlot::print().
int Timezone::set | ( | const char * | str | ) |
Sets the timezone
str | Time zone specification name:off - basic setting, off is in hours (can be fraction) +name:off - turn 12 hour (AM/PM) mode on for labels -name:off - 12 hour mode but labels include UTC/Z time |
References init(), and WXP::StrLib::valid().
Referenced by WXP::ImagePlot::init(), WXP::MeteoPlot::init(), WXP::NidsPlot::init(), WXP::RcmPlot::init(), WXP::FrontPlot::setParam(), WXP::GridPlot::setParam(), WXP::ImagePlot::setParam(), WXP::Lev2Plot::setParam(), WXP::MdrPlot::setParam(), WXP::MeteoPlot::setParam(), WXP::MosPlot::setParam(), WXP::NidsPlot::setParam(), WXP::RcmPlot::setParam(), WXP::HurPlot::setTimezone(), WXP::LightPlot::setTimezone(), WXP::RedbookPlot::setTimezone(), WXP::SatPlot::setTimezone(), WXP::SfcPlot::setTimezone(), WXP::UpaPlot::setTimezone(), WXP::WarnPlot::setTimezone(), WXP::WatchPlot::setTimezone(), and Timezone().