WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
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 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

◆ set()

int Timezone::set ( const char * str)

Sets the timezone

Parameters
strTime 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 Timezone().


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