![]() |
Home | Libraries | People | FAQ | More |
boost::date_time::dst_calculator — Dynamic class used to caluclate dst transition information.
// In header: <boost/date_time/dst_rules.hpp> template<typename date_type_, typename time_duration_type_> class dst_calculator { public: // types typedef ; typedef ; // public static functions (, , ); (, , ); (, , , , , , ); (, , , , , , ); };
dst_calculator
public static functions( time_of_day, dst_start_offset_minutes, dst_length_minutes);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.
Parameters: |
|
( time_of_day, dst_end_offset_minutes, dst_length_minutes);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.
Parameters: |
|
( current_day, time_of_day, dst_start_day, dst_start_offset, dst_end_day, dst_end_offset, dst_length);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.
Parameters: |
|
( current_day, time_of_day, dst_start_day, dst_start_offset_minutes, dst_end_day, dst_end_offset_minutes, dst_length_minutes);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.
Parameters: |
|