![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/include/boost/date_time/local_time/ |
Upload File : |
#ifndef LOCAL_TIME_DST_TRANSITION_DAY_RULES_HPP__ #define LOCAL_TIME_DST_TRANSITION_DAY_RULES_HPP__ /* Copyright (c) 2003-2004 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 "boost/date_time/gregorian/gregorian_types.hpp" #include "boost/date_time/dst_transition_generators.hpp" namespace boost { namespace local_time { //! Provides rule of the form starting Apr 30 ending Oct 21 typedef date_time::dst_day_calc_rule<gregorian::date> dst_calc_rule; struct partial_date_rule_spec { typedef gregorian::date date_type; typedef gregorian::partial_date start_rule; typedef gregorian::partial_date end_rule; }; //! Provides rule of the form first Sunday in April, last Saturday in Oct typedef date_time::day_calc_dst_rule<partial_date_rule_spec> partial_date_dst_rule; struct first_last_rule_spec { typedef gregorian::date date_type; typedef gregorian::first_kday_of_month start_rule; typedef gregorian::last_kday_of_month end_rule; }; //! Provides rule of the form first Sunday in April, last Saturday in Oct typedef date_time::day_calc_dst_rule<first_last_rule_spec> first_last_dst_rule; struct last_last_rule_spec { typedef gregorian::date date_type; typedef gregorian::last_kday_of_month start_rule; typedef gregorian::last_kday_of_month end_rule; }; //! Provides rule of the form last Sunday in April, last Saturday in Oct typedef date_time::day_calc_dst_rule<last_last_rule_spec> last_last_dst_rule; struct nth_last_rule_spec { typedef gregorian::date date_type; typedef gregorian::nth_kday_of_month start_rule; typedef gregorian::last_kday_of_month end_rule; }; //! Provides rule in form of [1st|2nd|3rd|4th] Sunday in April, last Sunday in Oct typedef date_time::day_calc_dst_rule<nth_last_rule_spec> nth_last_dst_rule; struct nth_kday_rule_spec { typedef gregorian::date date_type; typedef gregorian::nth_kday_of_month start_rule; typedef gregorian::nth_kday_of_month end_rule; }; //! Provides rule in form of [1st|2nd|3rd|4th] Sunday in April/October typedef date_time::day_calc_dst_rule<nth_kday_rule_spec> nth_kday_dst_rule; //! Provides rule in form of [1st|2nd|3rd|4th] Sunday in April/October typedef date_time::day_calc_dst_rule<nth_kday_rule_spec> nth_day_of_the_week_in_month_dst_rule; } }//namespace #endif