Dynamic class used to caluclate dst transition information. More...
#include <dst_rules.hpp>
Public Types | |
typedef time_duration_type_ | time_duration_type |
typedef date_type_ | date_type |
Static Public Member Functions | |
static time_is_dst_result | process_local_dst_start_day (const time_duration_type &time_of_day, unsigned int dst_start_offset_minutes, long dst_length_minutes) |
Check the local time offset when on dst start day. More... | |
static time_is_dst_result | process_local_dst_end_day (const time_duration_type &time_of_day, unsigned int dst_end_offset_minutes, long dst_length_minutes) |
Check the local time offset when on the last day of dst. More... | |
static time_is_dst_result | local_is_dst (const date_type ¤t_day, const time_duration_type &time_of_day, const date_type &dst_start_day, const time_duration_type &dst_start_offset, const date_type &dst_end_day, const time_duration_type &dst_end_offset, const time_duration_type &dst_length_minutes) |
Calculates if the given local time is dst or not. More... | |
static time_is_dst_result | local_is_dst (const date_type ¤t_day, const time_duration_type &time_of_day, const date_type &dst_start_day, unsigned int dst_start_offset_minutes, const date_type &dst_end_day, unsigned int dst_end_offset_minutes, long dst_length_minutes) |
Calculates if the given local time is dst or not. More... | |
Dynamic class used to caluclate dst transition information.
typedef date_type_ boost::date_time::dst_calculator< date_type_, time_duration_type_ >::date_type |
typedef time_duration_type_ boost::date_time::dst_calculator< date_type_, time_duration_type_ >::time_duration_type |
|
inlinestatic |
Calculates if the given local time is dst or not.
Determines if the time is really in DST or not. Also checks for invalid and ambiguous.
current_day | The day to check for dst |
time_of_day | Time offset within the day to check |
dst_start_day | Starting day of dst for the given locality |
dst_start_offset | Time offset within day for dst boundary |
dst_end_day | Ending day of dst for the given locality |
dst_end_offset | Time offset within day given in dst for dst boundary |
dst_length | lenght of dst adjusment |
The | time is either ambiguous, invalid, in dst, or not in dst |
Referenced by boost::date_time::dst_calc_engine< date_type, time_duration_type, dst_traits >::local_is_dst(), and boost::date_time::us_dst_rules< date_type_, time_duration_type_, dst_start_offset_minutes, dst_length_minutes >::local_is_dst().
|
inlinestatic |
Calculates if the given local time is dst or not.
Determines if the time is really in DST or not. Also checks for invalid and ambiguous.
current_day | The day to check for dst |
time_of_day | Time offset within the day to check |
dst_start_day | Starting day of dst for the given locality |
dst_start_offset_minutes | Offset within day for dst boundary (eg 120 for US which is 02:00:00) |
dst_end_day | Ending day of dst for the given locality |
dst_end_offset_minutes | Offset within day given in dst for dst boundary (eg 120 for US which is 02:00:00) |
dst_length_minutes | Length of dst adjusment (eg: 60 for US) |
The | time is either ambiguous, invalid, in dst, or not in dst |
References boost::date_time::invalid_time_label, boost::date_time::is_in_dst, boost::date_time::is_not_in_dst, boost::date_time::dst_calculator< date_type_, time_duration_type_ >::process_local_dst_end_day(), and boost::date_time::dst_calculator< date_type_, time_duration_type_ >::process_local_dst_start_day().
|
inlinestatic |
Check the local time offset when on the last day of dst.
This is the calculation for the DST end day. On that day times prior to the conversion time - dst_length (1 am in US) are still in dst. Times between the above and the switch time are ambiguous. Times after the start_offset are not in dst.
time_of_day | Time offset in the day for the local time |
dst_end_offset_minutes | Local time of day for end of dst |
status | of time label w.r.t. dst |
References boost::date_time::ambiguous, boost::date_time::is_in_dst, boost::date_time::is_not_in_dst, and boost::asio::offset.
Referenced by boost::date_time::dst_calculator< date_type_, time_duration_type_ >::local_is_dst().
|
inlinestatic |
Check the local time offset when on dst start day.
On this dst transition, the time label between the transition boundary and the boudary + the offset are invalid times. If before the boundary then still not in dst.
time_of_day | Time offset in the day for the local time |
dst_start_offset_minutes | Local day offset for start of dst |
dst_length_minutes | Number of minutes to adjust clock forward |
status | of time label w.r.t. dst |
References boost::date_time::invalid_time_label, boost::date_time::is_in_dst, boost::date_time::is_not_in_dst, and boost::asio::offset.
Referenced by boost::date_time::dst_calculator< date_type_, time_duration_type_ >::local_is_dst().