![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::time_zone_base — Interface class for dynamic time zones.
// In header: <boost/date_time/time_zone_base.hpp> template<typename time_type, typename CharT> class time_zone_base { public: // types typedef CharT ; typedef CharT > ; typedef CharT > ; typedef ; typedef ; // construct/copy/destruct (); ~(); // public member functions () ; () ; () ; () ; bool () ; () ; () ; () ; () ; () ; };
This class represents the base interface for all timezone representations. Subclasses may provide different systems for identifying a particular zone. For example some may provide a geographical based zone construction while others may specify the offset from GMT. Another possible implementation would be to convert from POSIX timezone strings. Regardless of the construction technique, this is the interface that these time zone types must provide.
Note that this class is intended to be used as a shared resource (hence the derivation from boost::counted_base.
time_zone_base
public member functions() ;String for the timezone when in daylight savings (eg: EDT)
() ;String for the zone when not in daylight savings (eg: EST)
() ;String for the timezone when in daylight savings (eg: Eastern Daylight Time)
() ;String for the zone when not in daylight savings (eg: Eastern Standard Time)
bool () ;True if zone uses daylight savings adjustments otherwise false.
( y) ;Local time that DST starts – undefined if has_dst is false.
( y) ;Local time that DST ends – undefined if has_dst is false.
() ;Base offset from UTC for zone (eg: -07:30:00)
() ;Adjustment forward or back made while DST is in effect.
() ;Returns a POSIX time_zone string for this object.