Home | Trees | Index | Help |
|
---|
Package wx :: Class DateTime |
|
object
--+
|
DateTime
Proxy of C++ DateTime class
Method Summary | |
---|---|
DateTime | __init__(self)
|
DateTime |
__add__(self, DateSpan other) -> DateTime |
__del__(self)
| |
bool | __eq__(self,
other)
|
bool | __ge__(self,
other)
|
bool | __gt__(self,
other)
|
DateTime |
__iadd__(self, DateSpan diff) -> DateTime |
DateTime |
__isub__(self, DateSpan diff) -> DateTime |
bool | __le__(self,
other)
|
bool | __lt__(self,
other)
|
bool | __ne__(self,
other)
|
__nonzero__(self)
| |
__repr__(self)
| |
__str__(self)
| |
TimeSpan |
__sub__(self, TimeSpan other) -> DateTime __sub__(self, DateSpan other) -> DateTime |
DateTime | AddDS(self,
diff)
|
DateTime | AddTS(self,
diff)
|
int | ConvertYearToBC(year)
(Static method) |
String | Format(self,
format,
tz)
|
String | FormatDate(self)
|
String | FormatISODate(self)
|
String | FormatISOTime(self)
|
String | FormatTime(self)
|
FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime | |
DateTime | FromUTC(self,
noDST)
|
(am, pm) |
Get the AM and PM strings in the current locale (may be empty) (Static method) |
DateTime | GetBeginDST(year,
country)
(Static method) |
int | GetCentury(year)
(Static method) |
int | GetCountry()
(Static method) |
int | GetCurrentMonth(cal)
(Static method) |
int | GetCurrentYear(cal)
(Static method) |
DateTime | GetDateOnly(self)
|
GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int | |
GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int | |
DateTime | GetEndDST(year,
country)
(Static method) |
GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int | |
double | GetJDN(self)
|
double | GetJulianDayNumber(self)
|
DateTime | GetLastMonthDay(self,
month,
year)
|
DateTime | GetLastWeekDay(self,
weekday,
month,
year)
|
GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int | |
GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int | |
double | GetMJD(self)
|
double | GetModifiedJulianDayNumber(self)
|
GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int | |
String | GetMonthName(month,
flags)
(Static method) |
DateTime | GetNextWeekDay(self,
weekday)
|
int | GetNumberOfDaysInMonth(month,
year,
cal)
(Static method) |
int | GetNumberOfDaysinYear(year,
cal)
(Static method) |
DateTime | GetPrevWeekDay(self,
weekday)
|
double | GetRataDie(self)
|
GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int | |
time_t | GetTicks(self)
|
GetWeek is deprecated, use GetWeekOfYear instead | |
GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int | |
DateTime | GetWeekDayInSameWeek(self,
weekday,
flags)
|
String | GetWeekDayName(weekday,
flags)
(Static method) |
int | GetWeekOfMonth(self,
flags,
tz)
|
int | GetWeekOfYear(self,
flags,
tz)
|
GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int | |
DateTime | GetYearDay(self,
yday)
|
bool | IsBetween(self,
t1,
t2)
|
int | IsDST(self,
country)
|
bool | IsDSTApplicable(year,
country)
(Static method) |
bool | IsEarlierThan(self,
datetime)
|
bool | IsEqualTo(self,
datetime)
|
bool | IsEqualUpTo(self,
dt,
ts)
|
bool | IsLaterThan(self,
datetime)
|
bool | IsLeapYear(year,
cal)
(Static method) |
bool | IsOk(self)
|
bool | IsSameDate(self,
dt)
|
bool | IsSameTime(self,
dt)
|
bool | IsStrictlyBetween(self,
t1,
t2)
|
bool | IsValid(self)
|
bool | IsWestEuropeanCountry(country)
(Static method) |
bool | IsWorkDay(self,
country)
|
MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime | |
DateTime | MakeFromUTC(self,
noDST)
|
DateTime | MakeGMT(self,
noDST)
|
MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime | |
DateTime | MakeUTC(self,
noDST)
|
DateTime | Now()
(Static method) |
bool | Ok(self)
|
int | ParseDate(self,
date)
|
int | ParseDateTime(self,
datetime)
|
int | ParseFormat(self,
date,
format,
dateDef)
|
int | ParseRfc822Date(self,
date)
|
int | ParseTime(self,
time)
|
DateTime | ResetTime(self)
|
DateTime | Set(self,
day,
month,
year,
hour,
minute,
second,
millisec)
|
SetCountry(country)
(Static method) | |
DateTime | SetDay(self,
day)
|
DateTime | SetHMS(self,
hour,
minute,
second,
millisec)
|
DateTime | SetHour(self,
hour)
|
DateTime | SetJDN(self,
jdn)
|
DateTime | SetMillisecond(self,
millisecond)
|
DateTime | SetMinute(self,
minute)
|
DateTime | SetMonth(self,
month)
|
DateTime | SetSecond(self,
second)
|
DateTime | SetTimeT(self,
timet)
|
DateTime | SetToCurrent(self)
|
DateTime | SetToLastMonthDay(self,
month,
year)
|
bool | SetToLastWeekDay(self,
weekday,
month,
year)
|
DateTime | SetToNextWeekDay(self,
weekday)
|
DateTime | SetToPrevWeekDay(self,
weekday)
|
SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead | |
bool | SetToWeekDay(self,
weekday,
n,
month,
year)
|
DateTime | SetToWeekDayInSameWeek(self,
weekday,
flags)
|
DateTime | SetToWeekOfYear(year,
numWeek,
weekday)
(Static method) |
DateTime | SetToYearDay(self,
yday)
|
DateTime | SetYear(self,
year)
|
TimeSpan | Subtract(self,
dt)
|
DateTime | SubtractDS(self,
diff)
|
DateTime | SubtractTS(self,
diff)
|
DateTime | Today()
(Static method) |
DateTime | ToGMT(self,
noDST)
|
ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime | |
DateTime | ToUTC(self,
noDST)
|
DateTime | UNow()
(Static method) |
Property Summary | |
---|---|
Day : See GetDay and SetDay | |
DayOfYear : See GetDayOfYear | |
Hour : See GetHour and SetHour | |
JDN : See GetJDN and SetJDN | |
JulianDayNumber : See GetJulianDayNumber | |
LastMonthDay : See GetLastMonthDay | |
LastWeekDay : See GetLastWeekDay | |
Millisecond : See GetMillisecond and SetMillisecond | |
Minute : See GetMinute and SetMinute | |
MJD : See GetMJD | |
ModifiedJulianDayNumber : See GetModifiedJulianDayNumber | |
Month : See GetMonth and SetMonth | |
NextWeekDay : See GetNextWeekDay | |
PrevWeekDay : See GetPrevWeekDay | |
RataDie : See GetRataDie | |
Second : See GetSecond and SetSecond | |
thisown : The membership flag | |
Ticks : See GetTicks | |
Week : See GetWeek | |
WeekDay : See GetWeekDay | |
WeekDayInSameWeek : See GetWeekDayInSameWeek | |
WeekOfMonth : See GetWeekOfMonth | |
WeekOfYear : See GetWeekOfYear | |
Year : See GetYear and SetYear | |
YearDay : See GetYearDay |
Class Variable Summary | |
---|---|
int |
A_CST = 27 |
int |
A_ESST = 24 |
int |
A_EST = 23 |
int |
A_WST = 21 |
int |
ADT = 10 |
int |
AKDT = 5 |
int |
AKST = 4 |
int |
Apr = 3 |
int |
AST = 9 |
int |
Aug = 7 |
int |
CDT = 8 |
int |
CEST = 15 |
int |
CET = 14 |
int |
Country_Default = 1 |
int |
Country_EEC = 2 |
int |
Country_Unknown = 0 |
int |
Country_WesternEurope_End = 5 |
int |
Country_WesternEurope_Start = 2 |
int |
CST = 7 |
int |
Dec = 11 |
int |
Default_First = 0 |
int |
EDT = 9 |
int |
EEST = 16 |
int |
EET = 15 |
int |
EST = 8 |
int |
Feb = 1 |
int |
France = 3 |
int |
Fri = 5 |
int |
Germany = 4 |
int |
GMT0 = 13 |
int |
GMT1 = 14 |
int |
GMT10 = 23 |
int |
GMT11 = 24 |
int |
GMT12 = 25 |
int |
GMT13 = 26 |
int |
GMT2 = 15 |
int |
GMT3 = 16 |
int |
GMT4 = 17 |
int |
GMT5 = 18 |
int |
GMT6 = 19 |
int |
GMT7 = 20 |
int |
GMT8 = 21 |
int |
GMT9 = 22 |
int |
GMT_1 = 12 |
int |
GMT_10 = 3 |
int |
GMT_11 = 2 |
int |
GMT_12 = 1 |
int |
GMT_2 = 11 |
int |
GMT_3 = 10 |
int |
GMT_4 = 9 |
int |
GMT_5 = 8 |
int |
GMT_6 = 7 |
int |
GMT_7 = 6 |
int |
GMT_8 = 5 |
int |
GMT_9 = 4 |
int |
Gr_Alaska = 2 |
int |
Gr_Albania = 3 |
int |
Gr_Austria = 0 |
int |
Gr_Austria_Brixen = 1 |
int |
Gr_Austria_Carinthia = 2 |
int |
Gr_Austria_Salzburg = 1 |
int |
Gr_Austria_Styria = 2 |
int |
Gr_Austria_Tyrol = 1 |
int |
Gr_Belgium = 3 |
int |
Gr_Bulgaria = 0 |
int |
Gr_Bulgaria_1 = 1 |
int |
Gr_Bulgaria_2 = 2 |
int |
Gr_Bulgaria_3 = 3 |
int |
Gr_Canada = 0 |
int |
Gr_China = 0 |
int |
Gr_China_1 = 1 |
int |
Gr_China_2 = 2 |
int |
Gr_Czechoslovakia = 3 |
int |
Gr_Denmark = 4 |
int |
Gr_Egypt = 5 |
int |
Gr_Estonia = 6 |
int |
Gr_Finland = 7 |
int |
Gr_France = 8 |
int |
Gr_France_Alsace = 9 |
int |
Gr_France_Lorraine = 10 |
int |
Gr_France_Strasbourg = 11 |
int |
Gr_Germany = 0 |
int |
Gr_Germany_Catholic = 1 |
int |
Gr_Germany_Protestant = 3 |
int |
Gr_Germany_Prussia = 2 |
int |
Gr_GreatBritain = 4 |
int |
Gr_Greece = 5 |
int |
Gr_Hungary = 6 |
int |
Gr_Ireland = 4 |
int |
Gr_Italy = 1 |
int |
Gr_Japan = 0 |
int |
Gr_Japan_1 = 1 |
int |
Gr_Japan_2 = 2 |
int |
Gr_Japan_3 = 3 |
int |
Gr_Latvia = 4 |
int |
Gr_Lithuania = 5 |
int |
Gr_Luxemburg = 6 |
int |
Gr_Netherlands = 3 |
int |
Gr_Netherlands_Friesland = 7 |
int |
Gr_Netherlands_Gelderland = 5 |
int |
Gr_Netherlands_Groningen = 4 |
int |
Gr_Netherlands_Utrecht = 6 |
int |
Gr_Norway = 4 |
int |
Gr_Poland = 1 |
int |
Gr_Portugal = 1 |
int |
Gr_Romania = 2 |
int |
Gr_Russia = 3 |
int |
Gr_Scotland = 4 |
int |
Gr_Spain = 1 |
int |
Gr_Standard = 1 |
int |
Gr_Sweden = 7 |
int |
Gr_Switzerland = 0 |
int |
Gr_Switzerland_Catholic = 1 |
int |
Gr_Switzerland_Protestant = 2 |
int |
Gr_Turkey = 3 |
int |
Gr_Unknown = 0 |
int |
Gr_USA = 4 |
int |
Gr_Wales = 4 |
int |
Gr_Yugoslavia = 5 |
int |
Gregorian = 0 |
int |
HST = 3 |
int |
Inv_Month = 12 |
int |
Inv_WeekDay = 7 |
int |
Inv_Year = -32768 |
int |
Jan = 0 |
int |
Jul = 6 |
int |
Julian = 1 |
int |
Jun = 5 |
int |
Local = 0 |
int |
Mar = 2 |
int |
May = 4 |
int |
MDT = 7 |
int |
Mon = 1 |
int |
Monday_First = 1 |
int |
MSD = 17 |
int |
MSK = 16 |
int |
MST = 6 |
int |
Name_Abbr = 2 |
int |
Name_Full = 1 |
int |
Nov = 10 |
int |
NZDT = 26 |
int |
NZST = 25 |
int |
Oct = 9 |
int |
PDT = 6 |
int |
PST = 5 |
int |
Russia = 6 |
int |
Sat = 6 |
int |
Sep = 8 |
int |
Sun = 0 |
int |
Sunday_First = 2 |
int |
Thu = 4 |
int |
Tue = 2 |
int |
UK = 5 |
int |
USA = 7 |
int |
UTC = 13 |
int |
Wed = 3 |
int |
WEST = 14 |
int |
WET = 13 |
Instance Method Details |
---|
__add__(self,
other)
|
__iadd__(self, diff)__iadd__(self, DateSpan diff) -> DateTime
|
__isub__(self, diff)__isub__(self, DateSpan diff) -> DateTime
|
__sub__(self,
other)
|
FromTimezone(*args, **kwargs)FromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime |
GetDay(*args, **kwargs)GetDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int |
GetDayOfYear(*args, **kwargs)GetDayOfYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int |
GetHour(*args, **kwargs)GetHour(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int |
GetMillisecond(*args, **kwargs)GetMillisecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int |
GetMinute(*args, **kwargs)GetMinute(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int |
GetMonth(*args, **kwargs)GetMonth(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int |
GetSecond(*args, **kwargs)GetSecond(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int |
GetWeek(*args, **kwargs)GetWeek is deprecated, use GetWeekOfYear instead |
GetWeekDay(*args, **kwargs)GetWeekDay(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int |
GetYear(*args, **kwargs)GetYear(self, wxDateTime::TimeZone tz=LOCAL_TZ) -> int |
MakeFromTimezone(*args, **kwargs)MakeFromTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime |
MakeTimezone(*args, **kwargs)MakeTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime |
SetToTheWeek(*args, **kwargs)SetToTheWeek is deprecated, use (static) SetToWeekOfYear instead |
ToTimezone(*args, **kwargs)ToTimezone(self, wxDateTime::TimeZone tz, bool noDST=False) -> DateTime |
Static Method Details |
---|
GetAmPmStrings()Get the AM and PM strings in the current locale (may be empty)
|
Property Details |
---|
Day |
DayOfYearSee
|
Hour |
JDN |
JulianDayNumber
|
LastMonthDaySee
|
LastWeekDaySee
|
MillisecondSee
|
Minute |
MJDSee
|
ModifiedJulianDayNumberSee
|
Month |
NextWeekDaySee
|
PrevWeekDaySee
|
RataDieSee
|
Second |
thisownThe membership flag |
TicksSee
|
WeekSee
|
WeekDaySee
|
WeekDayInSameWeek
|
WeekOfMonthSee
|
WeekOfYearSee
|
Year |
YearDaySee
|
Class Variable Details |
---|
A_CST
|
A_ESST
|
A_EST
|
A_WST
|
ADT
|
AKDT
|
AKST
|
Apr
|
AST
|
Aug
|
CDT
|
CEST
|
CET
|
Country_Default
|
Country_EEC
|
Country_Unknown
|
Country_WesternEurope_End
|
Country_WesternEurope_Start
|
CST
|
Dec
|
Default_First
|
EDT
|
EEST
|
EET
|
EST
|
Feb
|
France
|
Fri
|
Germany
|
GMT0
|
GMT1
|
GMT10
|
GMT11
|
GMT12
|
GMT13
|
GMT2
|
GMT3
|
GMT4
|
GMT5
|
GMT6
|
GMT7
|
GMT8
|
GMT9
|
GMT_1
|
GMT_10
|
GMT_11
|
GMT_12
|
GMT_2
|
GMT_3
|
GMT_4
|
GMT_5
|
GMT_6
|
GMT_7
|
GMT_8
|
GMT_9
|
Gr_Alaska
|
Gr_Albania
|
Gr_Austria
|
Gr_Austria_Brixen
|
Gr_Austria_Carinthia
|
Gr_Austria_Salzburg
|
Gr_Austria_Styria
|
Gr_Austria_Tyrol
|
Gr_Belgium
|
Gr_Bulgaria
|
Gr_Bulgaria_1
|
Gr_Bulgaria_2
|
Gr_Bulgaria_3
|
Gr_Canada
|
Gr_China
|
Gr_China_1
|
Gr_China_2
|
Gr_Czechoslovakia
|
Gr_Denmark
|
Gr_Egypt
|
Gr_Estonia
|
Gr_Finland
|
Gr_France
|
Gr_France_Alsace
|
Gr_France_Lorraine
|
Gr_France_Strasbourg
|
Gr_Germany
|
Gr_Germany_Catholic
|
Gr_Germany_Protestant
|
Gr_Germany_Prussia
|
Gr_GreatBritain
|
Gr_Greece
|
Gr_Hungary
|
Gr_Ireland
|
Gr_Italy
|
Gr_Japan
|
Gr_Japan_1
|
Gr_Japan_2
|
Gr_Japan_3
|
Gr_Latvia
|
Gr_Lithuania
|
Gr_Luxemburg
|
Gr_Netherlands
|
Gr_Netherlands_Friesland
|
Gr_Netherlands_Gelderland
|
Gr_Netherlands_Groningen
|
Gr_Netherlands_Utrecht
|
Gr_Norway
|
Gr_Poland
|
Gr_Portugal
|
Gr_Romania
|
Gr_Russia
|
Gr_Scotland
|
Gr_Spain
|
Gr_Standard
|
Gr_Sweden
|
Gr_Switzerland
|
Gr_Switzerland_Catholic
|
Gr_Switzerland_Protestant
|
Gr_Turkey
|
Gr_Unknown
|
Gr_USA
|
Gr_Wales
|
Gr_Yugoslavia
|
Gregorian
|
HST
|
Inv_Month
|
Inv_WeekDay
|
Inv_Year
|
Jan
|
Jul
|
Julian
|
Jun
|
Local
|
Mar
|
May
|
MDT
|
Mon
|
Monday_First
|
MSD
|
MSK
|
MST
|
Name_Abbr
|
Name_Full
|
Nov
|
NZDT
|
NZST
|
Oct
|
PDT
|
PST
|
Russia
|
Sat
|
Sep
|
Sun
|
Sunday_First
|
Thu
|
Tue
|
UK
|
USA
|
UTC
|
Wed
|
WEST
|
WET
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:08:25 2007 | http://epydoc.sf.net |