time_zone Class Reference

Time zone representation. More...

Inheritance diagram for time_zone:

date date_time gday gmonth gmonth_day gyear gyear_month time

List of all members.

Constructors

 time_zone ()
 Default constructor.
 time_zone (short hours, short minutes)
 Initialize an instance with the hours and minutes components.

Public Member Functions

bool zone_present () const
 Determine if time zone is specified.
void zone_reset ()
 Reset the time zone to the 'not specified' state.
short zone_hours () const
 Get the hours component of the time zone.
void zone_hours (short h)
 Set the hours component of the time zone.
short zone_minutes () const
 Get the minutes component of the time zone.
void zone_minutes (short m)
 Set the minutes component of the time zone.


Detailed Description

Time zone representation.

The time_zone class represents an optional time zone and is used as a base class for date/time types.

The time zone can negative in which case both the hours and minutes components should be negative.


Constructor & Destructor Documentation

time_zone (  ) 

Default constructor.

This constructor initializes the instance to the 'not specified' state.

time_zone ( short  hours,
short  minutes 
)

Initialize an instance with the hours and minutes components.

Parameters:
hours The time zone hours component.
minutes The time zone minutes component.


Member Function Documentation

bool zone_present (  )  const

Determine if time zone is specified.

Returns:
True if time zone is specified, false otherwise.

short zone_hours (  )  const

Get the hours component of the time zone.

Returns:
The hours component of the time zone.

void zone_hours ( short  h  ) 

Set the hours component of the time zone.

Parameters:
h The new hours component.

short zone_minutes (  )  const

Get the minutes component of the time zone.

Returns:
The minutes component of the time zone.

void zone_minutes ( short  m  ) 

Set the minutes component of the time zone.

Parameters:
m The new minutes component.


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

Copyright © 2005-2010 CODE SYNTHESIS TOOLS CC