// is the date valid (True even for non initialized objects)?
inline bool IsValid() const;
- %pythoncode { Ok = IsValid }
- %pythoncode { def __nonzero__(self): return self.Ok() };
+ %pythoncode { IsOk = IsValid }
+ %pythoncode { Ok = IsOk }
+
+ %pythoncode { def __nonzero__(self): return self.IsOk() };
// get the number of seconds since the Unix epoch - returns (time_t)-1
def __str__(self):
return self.Format().encode(wx.GetDefaultPyEncoding())
}
+
+ %property(Days, GetDays, doc="See `GetDays`");
+ %property(Hours, GetHours, doc="See `GetHours`");
+ %property(Milliseconds, GetMilliseconds, doc="See `GetMilliseconds`");
+ %property(Minutes, GetMinutes, doc="See `GetMinutes`");
+ %property(Seconds, GetSeconds, doc="See `GetSeconds`");
+ %property(Weeks, GetWeeks, doc="See `GetWeeks`");
};