WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
Public Member Functions | List of all members
WXP::Timezone Class Reference

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 ()
 

Detailed Description

This class manipulates timezones.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ Timezone() [1/2]

Timezone::Timezone ( const char *  str)

Constructor. Sets timezone from string

Parameters
strString used to set timezone parameters

References set().

◆ Timezone() [2/2]

Timezone::Timezone ( )

Constructor. Initializes the class values

References init().

Member Function Documentation

◆ getName()

const char * Timezone::getName ( )

Returns the name of the zone

Referenced by WXP::DateTool::createLabel().

◆ getOffset()

int Timezone::getOffset ( )

Returns timezone offset from UTC in seconds

Referenced by WXP::DateTool::createLabel().

◆ getPM()

int Timezone::getPM ( )

Gets the PM setting

Returns
0 = no PM setting
1 = 12 hr AM/PM
2 = 12 hr + UTC/Z time

Referenced by WXP::DateTool::createLabel().

◆ init()

int Timezone::init ( )

Initializes the object

References WXP::Const::MISS.

Referenced by WXP::MosPlot::init(), WXP::SfcPlot::init(), WXP::UpaPlot::init(), set(), and Timezone().

◆ isSet()

bool Timezone::isSet ( )

Returns true if zone is set

References WXP::Const::MISS.

Referenced by WXP::DateTool::createLabel().

◆ print()

int Timezone::print ( )

Prints object parameters

Referenced by WXP::SfcPlot::print().

◆ set()

int Timezone::set ( const char *  str)

The documentation for this class was generated from the following files: