예제 #1
0
파일: dst_rules.hpp 프로젝트: gijs/PDAL
 static date_type local_dst_start_day(year_type year)
 {
   if (year >= year_type(2007)) {
     //second sunday in march
     nkday ssim(nkday::second, Sunday, gregorian::Mar);
     return ssim.get_date(year);      
   } else {
     //first sunday in april
     fkday fsia(Sunday, gregorian::Apr);
     return fsia.get_date(year);      
   }
 }
예제 #2
0
 static date_type local_dst_start_day(year_type year)
 {
   //first sunday in april
   fkday fsia(Sunday, gregorian::Apr);
   return fsia.get_date(year);      
 }