date(year, month, day) --> date object
Inherits From: expected_type
google.appengine.ext.db.DateProperty.data_type(
*args, **kwargs
)
Attributes | |
---|---|
day
|
|
month
|
|
year
|
Methods
ctime
ctime()
Return ctime() style string.
fromisocalendar
fromisocalendar()
int, int, int -> Construct a date from the ISO year, week number and weekday.
This is the inverse of the date.isocalendar() function
fromisoformat
fromisoformat()
str -> Construct a date from the output of date.isoformat()
fromordinal
fromordinal()
int -> date corresponding to a proleptic Gregorian ordinal.
fromtimestamp
fromtimestamp()
Create a date from a POSIX timestamp.
The timestamp is a number, e.g. created via time.time(), that is interpreted as local time.
isocalendar
isocalendar()
Return a named tuple containing ISO year, week number, and weekday.
isoformat
isoformat()
Return string in ISO 8601 format, YYYY-MM-DD.
isoweekday
isoweekday()
Return the day of the week represented by the date. Monday == 1 ... Sunday == 7
replace
replace()
Return date with new specified fields.
strftime
strftime()
format -> strftime() style string.
timetuple
timetuple()
Return time tuple, compatible with time.localtime().
today
today()
Current date or datetime: same as self.class.fromtimestamp(time.time()).
toordinal
toordinal()
Return proleptic Gregorian ordinal. January 1 of year 1 is day 1.
weekday
weekday()
Return the day of the week represented by the date. Monday == 0 ... Sunday == 6
__add__
__add__(
value, /
)
Return self+value.
__eq__
__eq__(
value, /
)
Return self==value.
__ge__
__ge__(
value, /
)
Return self>=value.
__gt__
__gt__(
value, /
)
Return self>value.
__le__
__le__(
value, /
)
Return self<=value.
__lt__
__lt__(
value, /
)
Return self<value.
__ne__
__ne__(
value, /
)
Return self!=value.
__radd__
__radd__(
value, /
)
Return value+self.
__rsub__
__rsub__(
value, /
)
Return value-self.
__sub__
__sub__(
value, /
)
Return self-value.
Class Variables | |
---|---|
max |
Instance of google.appengine.ext.db.DateProperty.data_type
|
min |
Instance of google.appengine.ext.db.DateProperty.data_type
|
resolution |
Instance of datetime.timedelta
|