datetime(year, month, day, [hour, [minute, [seconds, [microsecond,
[tzinfo]]]]]) --> datetime object
|
time(self)
Return time object with same time but with tzinfo=None. |
source code
|
|
|
date(self)
Return date object with same year, month and day. |
source code
|
|
|
__init__(self,
year,
month,
day,
hour=None,
minute=None,
second=None,
microsecond=None,
tzinfo=None)
date(year, month, day) --> date object |
source code
|
|
|
|
|
replace(self,
year=None,
month=None,
day=None,
hour=None,
minute=None,
second=None,
microsecond=None,
tzinfo=None)
Return datetime with new specified fields. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
astimezone(self,
tz)
tz -> convert to local time in new timezone tz |
source code
|
|
|
|
|
|
|
isoformat(self)
[sep] -> string in ISO 8601 format,
YYYY-MM-DDTHH:MM:SS[.mmmmmm][+HH:MM]. |
source code
|
|
|
|
|
timetz(self)
Return time object with same time and tzinfo. |
source code
|
|
|
tzname(self)
Return self.tzinfo.tzname(self) |
source code
|
|
|
utcoffset(self)
Return self.tzinfo.utcoffset(self). |
source code
|
|
|
|
|
|
Inherited from date :
isleap ,
isocalendar ,
isoweekday ,
strftime ,
toordinal ,
weekday ,
weeknumber ,
yday
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|
|
|
|
now(tz=None)
[tz] -> new datetime with tz's local day and time. |
source code
|
|
|
utcnow()
Return a new datetime representing UTC day and time. |
source code
|
|
|
|
|
utcfromtimestamp(timestamp)
timestamp -> UTC datetime from a POSIX timestamp (like
time.time()). |
source code
|
|
|
combine(d=None,
t=None,
**kw)
date, time -> datetime with same date and time fields |
source code
|
|
|
|
|
strptime(date_string,
format)
string, format -> new datetime parsed from a string (like
time.strptime()) |
source code
|
|
|
fromgregorian(**kw)
Convert gregorian to jalali and return jdatetime.datetime
jdatetime.date.fromgregorian(day=X,month=X,year=X,[hour=X, [minute=X,
[second=X, [tzinfo=X]]]])
jdatetime.date.fromgregorian(date=datetime.date)
jdatetime.date.fromgregorian(datetime=datetime.datetime) |
source code
|
|