+ def IsDST(*args, **kwargs):
+ """IsDST(int country=Country_Default) -> int"""
+ return _misc.DateTime_IsDST(*args, **kwargs)
+
+ def IsValid(*args, **kwargs):
+ """IsValid() -> bool"""
+ return _misc.DateTime_IsValid(*args, **kwargs)
+
+ Ok = IsValid
+ def __nonzero__(self): return self.Ok()
+ def GetTicks(*args, **kwargs):
+ """GetTicks() -> time_t"""
+ return _misc.DateTime_GetTicks(*args, **kwargs)
+
+ def GetYear(*args, **kwargs):
+ """GetYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetYear(*args, **kwargs)
+
+ def GetMonth(*args, **kwargs):
+ """GetMonth(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetMonth(*args, **kwargs)
+
+ def GetDay(*args, **kwargs):
+ """GetDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetDay(*args, **kwargs)
+
+ def GetWeekDay(*args, **kwargs):
+ """GetWeekDay(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetWeekDay(*args, **kwargs)
+
+ def GetHour(*args, **kwargs):
+ """GetHour(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetHour(*args, **kwargs)
+
+ def GetMinute(*args, **kwargs):
+ """GetMinute(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetMinute(*args, **kwargs)
+
+ def GetSecond(*args, **kwargs):
+ """GetSecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetSecond(*args, **kwargs)
+
+ def GetMillisecond(*args, **kwargs):
+ """GetMillisecond(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetMillisecond(*args, **kwargs)
+
+ def GetDayOfYear(*args, **kwargs):
+ """GetDayOfYear(wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetDayOfYear(*args, **kwargs)
+
+ def GetWeekOfYear(*args, **kwargs):
+ """GetWeekOfYear(int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetWeekOfYear(*args, **kwargs)
+
+ def GetWeekOfMonth(*args, **kwargs):
+ """GetWeekOfMonth(int flags=Monday_First, wxDateTime::TimeZone tz=LOCAL_TZ) -> int"""
+ return _misc.DateTime_GetWeekOfMonth(*args, **kwargs)
+
+ def IsWorkDay(*args, **kwargs):
+ """IsWorkDay(int country=Country_Default) -> bool"""
+ return _misc.DateTime_IsWorkDay(*args, **kwargs)
+
+ def IsEqualTo(*args, **kwargs):
+ """IsEqualTo(DateTime datetime) -> bool"""
+ return _misc.DateTime_IsEqualTo(*args, **kwargs)
+
+ def IsEarlierThan(*args, **kwargs):
+ """IsEarlierThan(DateTime datetime) -> bool"""
+ return _misc.DateTime_IsEarlierThan(*args, **kwargs)
+
+ def IsLaterThan(*args, **kwargs):
+ """IsLaterThan(DateTime datetime) -> bool"""
+ return _misc.DateTime_IsLaterThan(*args, **kwargs)
+
+ def IsStrictlyBetween(*args, **kwargs):
+ """IsStrictlyBetween(DateTime t1, DateTime t2) -> bool"""
+ return _misc.DateTime_IsStrictlyBetween(*args, **kwargs)
+
+ def IsBetween(*args, **kwargs):
+ """IsBetween(DateTime t1, DateTime t2) -> bool"""
+ return _misc.DateTime_IsBetween(*args, **kwargs)
+
+ def IsSameDate(*args, **kwargs):
+ """IsSameDate(DateTime dt) -> bool"""
+ return _misc.DateTime_IsSameDate(*args, **kwargs)
+
+ def IsSameTime(*args, **kwargs):
+ """IsSameTime(DateTime dt) -> bool"""
+ return _misc.DateTime_IsSameTime(*args, **kwargs)
+
+ def IsEqualUpTo(*args, **kwargs):
+ """IsEqualUpTo(DateTime dt, TimeSpan ts) -> bool"""
+ return _misc.DateTime_IsEqualUpTo(*args, **kwargs)
+
+ def AddTS(*args, **kwargs):
+ """AddTS(TimeSpan diff) -> DateTime"""
+ return _misc.DateTime_AddTS(*args, **kwargs)
+
+ def AddDS(*args, **kwargs):
+ """AddDS(DateSpan diff) -> DateTime"""
+ return _misc.DateTime_AddDS(*args, **kwargs)
+
+ def SubtractTS(*args, **kwargs):
+ """SubtractTS(TimeSpan diff) -> DateTime"""
+ return _misc.DateTime_SubtractTS(*args, **kwargs)
+
+ def SubtractDS(*args, **kwargs):
+ """SubtractDS(DateSpan diff) -> DateTime"""
+ return _misc.DateTime_SubtractDS(*args, **kwargs)
+
+ def Subtract(*args, **kwargs):
+ """Subtract(DateTime dt) -> TimeSpan"""
+ return _misc.DateTime_Subtract(*args, **kwargs)
+
+ def __iadd__(*args):
+ """
+ __iadd__(TimeSpan diff) -> DateTime
+ __iadd__(DateSpan diff) -> DateTime
+ """
+ return _misc.DateTime___iadd__(*args)
+
+ def __isub__(*args):
+ """
+ __isub__(TimeSpan diff) -> DateTime
+ __isub__(DateSpan diff) -> DateTime
+ """
+ return _misc.DateTime___isub__(*args)
+
+ def __add__(*args):
+ """
+ __add__(TimeSpan other) -> DateTime
+ __add__(DateSpan other) -> DateTime
+ """
+ return _misc.DateTime___add__(*args)
+
+ def __sub__(*args):
+ """
+ __sub__(DateTime other) -> TimeSpan
+ __sub__(TimeSpan other) -> DateTime
+ __sub__(DateSpan other) -> DateTime
+ """
+ return _misc.DateTime___sub__(*args)
+
+ def __lt__(*args):
+ """__lt__(DateTime other) -> bool"""
+ return _misc.DateTime___lt__(*args)
+
+ def __le__(*args):
+ """__le__(DateTime other) -> bool"""
+ return _misc.DateTime___le__(*args)
+
+ def __gt__(*args):
+ """__gt__(DateTime other) -> bool"""
+ return _misc.DateTime___gt__(*args)
+
+ def __ge__(*args):
+ """__ge__(DateTime other) -> bool"""
+ return _misc.DateTime___ge__(*args)
+
+ def __eq__(*args):
+ """__eq__(DateTime other) -> bool"""
+ return _misc.DateTime___eq__(*args)
+
+ def __ne__(*args):
+ """__ne__(DateTime other) -> bool"""
+ return _misc.DateTime___ne__(*args)
+
+ def ParseRfc822Date(*args, **kwargs):
+ """ParseRfc822Date(String date) -> int"""
+ return _misc.DateTime_ParseRfc822Date(*args, **kwargs)
+
+ def ParseFormat(*args, **kwargs):
+ """ParseFormat(String date, String format=DateFormatStr, DateTime dateDef=DefaultDateTime) -> int"""
+ return _misc.DateTime_ParseFormat(*args, **kwargs)
+
+ def ParseDateTime(*args, **kwargs):
+ """ParseDateTime(String datetime) -> int"""
+ return _misc.DateTime_ParseDateTime(*args, **kwargs)
+
+ def ParseDate(*args, **kwargs):
+ """ParseDate(String date) -> int"""
+ return _misc.DateTime_ParseDate(*args, **kwargs)
+
+ def ParseTime(*args, **kwargs):
+ """ParseTime(String time) -> int"""
+ return _misc.DateTime_ParseTime(*args, **kwargs)
+
+ def Format(*args, **kwargs):
+ """Format(String format=DateFormatStr, wxDateTime::TimeZone tz=LOCAL_TZ) -> String"""
+ return _misc.DateTime_Format(*args, **kwargs)
+
+ def FormatDate(*args, **kwargs):
+ """FormatDate() -> String"""
+ return _misc.DateTime_FormatDate(*args, **kwargs)
+
+ def FormatTime(*args, **kwargs):
+ """FormatTime() -> String"""
+ return _misc.DateTime_FormatTime(*args, **kwargs)
+
+ def FormatISODate(*args, **kwargs):
+ """FormatISODate() -> String"""
+ return _misc.DateTime_FormatISODate(*args, **kwargs)
+
+ def FormatISOTime(*args, **kwargs):
+ """FormatISOTime() -> String"""
+ return _misc.DateTime_FormatISOTime(*args, **kwargs)
+
+ def __repr__(self):
+ return '<wxDateTime: \"%s\" at %s>' % ( self.Format(), self.this)
+ def __str__(self):
+ return self.Format()
+
+
+class DateTimePtr(DateTime):
+ def __init__(self, this):
+ self.this = this
+ if not hasattr(self,"thisown"): self.thisown = 0
+ self.__class__ = DateTime
+_misc.DateTime_swigregister(DateTimePtr)
+DateFormatStr = cvar.DateFormatStr
+TimeSpanFormatStr = cvar.TimeSpanFormatStr
+
+def DateTime_SetCountry(*args, **kwargs):
+ """DateTime_SetCountry(int country)"""
+ return _misc.DateTime_SetCountry(*args, **kwargs)
+
+def DateTime_GetCountry(*args, **kwargs):
+ """DateTime_GetCountry() -> int"""
+ return _misc.DateTime_GetCountry(*args, **kwargs)
+
+def DateTime_IsWestEuropeanCountry(*args, **kwargs):
+ """DateTime_IsWestEuropeanCountry(int country=Country_Default) -> bool"""
+ return _misc.DateTime_IsWestEuropeanCountry(*args, **kwargs)
+
+def DateTime_GetCurrentYear(*args, **kwargs):
+ """DateTime_GetCurrentYear(int cal=Gregorian) -> int"""
+ return _misc.DateTime_GetCurrentYear(*args, **kwargs)
+
+def DateTime_ConvertYearToBC(*args, **kwargs):
+ """DateTime_ConvertYearToBC(int year) -> int"""
+ return _misc.DateTime_ConvertYearToBC(*args, **kwargs)
+
+def DateTime_GetCurrentMonth(*args, **kwargs):
+ """DateTime_GetCurrentMonth(int cal=Gregorian) -> int"""
+ return _misc.DateTime_GetCurrentMonth(*args, **kwargs)
+
+def DateTime_IsLeapYear(*args, **kwargs):
+ """DateTime_IsLeapYear(int year=Inv_Year, int cal=Gregorian) -> bool"""
+ return _misc.DateTime_IsLeapYear(*args, **kwargs)
+
+def DateTime_GetCentury(*args, **kwargs):
+ """DateTime_GetCentury(int year=Inv_Year) -> int"""
+ return _misc.DateTime_GetCentury(*args, **kwargs)
+
+def DateTime_GetNumberOfDaysinYear(*args, **kwargs):
+ """DateTime_GetNumberOfDaysinYear(int year, int cal=Gregorian) -> int"""
+ return _misc.DateTime_GetNumberOfDaysinYear(*args, **kwargs)
+
+def DateTime_GetNumberOfDaysInMonth(*args, **kwargs):
+ """DateTime_GetNumberOfDaysInMonth(int month, int year=Inv_Year, int cal=Gregorian) -> int"""
+ return _misc.DateTime_GetNumberOfDaysInMonth(*args, **kwargs)
+
+def DateTime_GetMonthName(*args, **kwargs):
+ """DateTime_GetMonthName(int month, int flags=Name_Full) -> String"""
+ return _misc.DateTime_GetMonthName(*args, **kwargs)
+
+def DateTime_GetWeekDayName(*args, **kwargs):
+ """DateTime_GetWeekDayName(int weekday, int flags=Name_Full) -> String"""
+ return _misc.DateTime_GetWeekDayName(*args, **kwargs)
+
+def DateTime_GetAmPmStrings(*args, **kwargs):
+ """
+ GetAmPmStrings() -> (am, pm)
+
+ Get the AM and PM strings in the current locale (may be empty)
+ """
+ return _misc.DateTime_GetAmPmStrings(*args, **kwargs)
+
+def DateTime_IsDSTApplicable(*args, **kwargs):
+ """DateTime_IsDSTApplicable(int year=Inv_Year, int country=Country_Default) -> bool"""
+ return _misc.DateTime_IsDSTApplicable(*args, **kwargs)
+
+def DateTime_GetBeginDST(*args, **kwargs):
+ """DateTime_GetBeginDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
+ return _misc.DateTime_GetBeginDST(*args, **kwargs)
+
+def DateTime_GetEndDST(*args, **kwargs):
+ """DateTime_GetEndDST(int year=Inv_Year, int country=Country_Default) -> DateTime"""
+ return _misc.DateTime_GetEndDST(*args, **kwargs)
+
+def DateTime_Now(*args, **kwargs):
+ """DateTime_Now() -> DateTime"""
+ return _misc.DateTime_Now(*args, **kwargs)
+
+def DateTime_UNow(*args, **kwargs):
+ """DateTime_UNow() -> DateTime"""
+ return _misc.DateTime_UNow(*args, **kwargs)
+
+def DateTime_Today(*args, **kwargs):
+ """DateTime_Today() -> DateTime"""
+ return _misc.DateTime_Today(*args, **kwargs)
+
+def DateTimeFromTimeT(*args, **kwargs):
+ """DateTimeFromTimeT(time_t timet) -> DateTime"""
+ val = _misc.new_DateTimeFromTimeT(*args, **kwargs)
+ val.thisown = 1
+ return val
+
+def DateTimeFromJDN(*args, **kwargs):
+ """DateTimeFromJDN(double jdn) -> DateTime"""
+ val = _misc.new_DateTimeFromJDN(*args, **kwargs)
+ val.thisown = 1