Zone sources from Boost.DateTime; see hegel/extras/boost_date_time.h.
More...
Zone sources from Boost.DateTime; see hegel/extras/boost_date_time.h.
◆ zone_data()
The data of a Boost time zone: its rule for all time, with no transitions.
The standard type has the zone's base offset and standard abbreviation; the daylight-saving type, when the zone has one, the base offset plus its adjustment, and its daylight-saving abbreviation.
- Parameters
-
| zone | A Boost time zone, such as a boost::local_time::posix_time_zone or one from a boost::local_time::tz_database. |
- Returns
- The zone's data, for ZoneSource::add_zone().
- Exceptions
-
| std::invalid_argument | for a null zone, or one whose daylight-saving time starts or ends on February 29. |
◆ zone_source()
A zone source holding every region of a Boost time zone database, each under the name the database gives it, such as America/New_York.
- Parameters
-
- Returns
- A new source with one zone per region.
- Exceptions
-
| std::invalid_argument | as zone_data() does, or for a region name the engine rejects. |