+static void TestTimeHolidays()
+{
+ puts("\n*** testing wxDateTimeHolidayAuthority ***\n");
+
+ wxDateTime::Tm tm = wxDateTime(29, wxDateTime::May, 2000).GetTm();
+ wxDateTime dtStart(1, tm.mon, tm.year),
+ dtEnd = dtStart.GetLastMonthDay();
+
+ wxDateTimeArray hol;
+ wxDateTimeHolidayAuthority::GetHolidaysInRange(dtStart, dtEnd, hol);
+
+ const wxChar *format = "%d-%b-%Y (%a)";
+
+ printf("All holidays between %s and %s:\n",
+ dtStart.Format(format).c_str(), dtEnd.Format(format).c_str());
+
+ size_t count = hol.GetCount();
+ for ( size_t n = 0; n < count; n++ )
+ {
+ printf("\t%s\n", hol[n].Format(format).c_str());
+ }
+
+ puts("");
+}
+