add monthfirstday function
This commit is contained in:
parent
70be667377
commit
d0bf300975
@ -17,6 +17,10 @@ def days_between(date_str1, date_str2):
|
||||
days = abs(delta.days)
|
||||
return days
|
||||
|
||||
def monthfirstday():
|
||||
d = datetime.now()
|
||||
return '%4d-%02d-01' % (d.year, d.month)
|
||||
|
||||
def curDatetime():
|
||||
return datetime.now()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user