/usr/include/boost/date_time
NameSizeModeActions
gregorian/-0755rm
local_time/-0755rm
posix_time/-0755rm
adjust_functors.hpp54670644editdlrm
compiler_config.hpp56400644editdlrm
constrained_value.hpp42240644editdlrm
c_local_time_adjustor.hpp26310644editdlrm
c_time.hpp44960644editdlrm
date.hpp73570644editdlrm
date_clock_device.hpp22990644editdlrm
date_defs.hpp7010644editdlrm
date_duration.hpp46690644editdlrm
date_duration_types.hpp91860644editdlrm
date_facet.hpp293140644editdlrm
date_formatting.hpp42080644editdlrm
date_formatting_limited.hpp34610644editdlrm
date_formatting_locales.hpp67480644editdlrm
date_format_simple.hpp31280644editdlrm
date_generators.hpp165080644editdlrm
date_generator_formatter.hpp117150644editdlrm
date_generator_parser.hpp130640644editdlrm
date_iterator.hpp33050644editdlrm
date_names_put.hpp107540644editdlrm
date_parsing.hpp141460644editdlrm
dst_rules.hpp154010644editdlrm
dst_transition_generators.hpp22930644editdlrm
filetime_functions.hpp31630644editdlrm
find_match.hpp13550644editdlrm
format_date_parser.hpp239090644editdlrm
gregorian_calendar.hpp27140644editdlrm
gregorian_calendar.ipp79470644editdlrm
int_adapter.hpp144630644editdlrm
iso_format.hpp56400644editdlrm
locale_config.hpp12060644editdlrm
local_timezone_defs.hpp76180644editdlrm
local_time_adjustor.hpp85780644editdlrm
microsec_time_clock.hpp62570644editdlrm
parse_format_base.hpp9610644editdlrm
period.hpp119360644editdlrm
period_formatter.hpp72370644editdlrm
period_parser.hpp79320644editdlrm
special_defs.hpp6330644editdlrm
special_values_formatter.hpp36570644editdlrm
special_values_parser.hpp61610644editdlrm
strings_from_facet.hpp45050644editdlrm
string_convert.hpp10020644editdlrm
string_parse_tree.hpp84050644editdlrm
time.hpp67880644editdlrm
time_clock.hpp22450644editdlrm
time_defs.hpp9420644editdlrm
time_duration.hpp105690644editdlrm
time_facet.hpp589880644editdlrm
time_formatting_streams.hpp37520644editdlrm
time_iterator.hpp14380644editdlrm
time_parsing.hpp118460644editdlrm
time_resolution_traits.hpp67600644editdlrm
time_system_counted.hpp90510644editdlrm
time_system_split.hpp80770644editdlrm
time_zone_base.hpp37110644editdlrm
time_zone_names.hpp31030644editdlrm
tz_db_base.hpp159150644editdlrm
wrapping_int.hpp58240644editdlrm
year_month_day.hpp13750644editdlrm
Edit: /usr/include/boost/date_time/time_zone_base.hpp (3711B)
#ifndef _DATE_TIME_TIME_ZONE_BASE__ #define _DATE_TIME_TIME_ZONE_BASE__ /* Copyright (c) 2003-2005 CrystalClear Software, Inc. * Subject to the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) * Author: Jeff Garland, Bart Garst * $Date$ */ #include #include #include namespace boost { namespace date_time { //! Interface class for dynamic time zones. /*! 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. */ template class BOOST_SYMBOL_VISIBLE time_zone_base { public: typedef CharT char_type; typedef std::basic_string string_type; typedef std::basic_ostringstream stringstream_type; typedef typename time_type::date_type::year_type year_type; typedef typename time_type::time_duration_type time_duration_type; time_zone_base() {} virtual ~time_zone_base() {} //!String for the timezone when in daylight savings (eg: EDT) virtual string_type dst_zone_abbrev() const=0; //!String for the zone when not in daylight savings (eg: EST) virtual string_type std_zone_abbrev() const=0; //!String for the timezone when in daylight savings (eg: Eastern Daylight Time) virtual string_type dst_zone_name() const=0; //!String for the zone when not in daylight savings (eg: Eastern Standard Time) virtual string_type std_zone_name() const=0; //! True if zone uses daylight savings adjustments otherwise false virtual bool has_dst() const=0; //! Local time that DST starts -- undefined if has_dst is false virtual time_type dst_local_start_time(year_type y) const=0; //! Local time that DST ends -- undefined if has_dst is false virtual time_type dst_local_end_time(year_type y) const=0; //! Base offset from UTC for zone (eg: -07:30:00) virtual time_duration_type base_utc_offset() const=0; //! Adjustment forward or back made while DST is in effect virtual time_duration_type dst_offset() const=0; //! Returns a POSIX time_zone string for this object virtual string_type to_posix_string() const =0; private: }; //! Structure which holds the time offsets associated with daylight savings time /*! *@tparam time_duration_type A type used to represent the offset */ template class dst_adjustment_offsets { public: dst_adjustment_offsets(const time_duration_type& dst_adjust, const time_duration_type& dst_start_offset, const time_duration_type& dst_end_offset) : dst_adjust_(dst_adjust), dst_start_offset_(dst_start_offset), dst_end_offset_(dst_end_offset) {} //! Amount DST adjusts the clock eg: plus one hour time_duration_type dst_adjust_; //! Time past midnight on start transition day that dst starts time_duration_type dst_start_offset_; //! Time past midnight on end transition day that dst ends time_duration_type dst_end_offset_; }; } } //namespace date_time #endif