Closed saeedsafavi26 closed 5 years ago
@saeedsafavi26 this is a usage question, not a library issue. QA forums like StackOverflow are better options than here.
jdatetime
implements the same interface as Python standard library datetime, so the same operations apply to it.
>>> from jdatetime import datetime, timedelta
>>> datetime.now() - timedelta(days=1)
jdatetime.datetime(1398, 7, 2, 16, 53, 26, 558957)
hello, i use bellow code to code to get today's jalali date: jdatetime.datetime.now().strftime("%Y %m %d") how can i get yesteday in above format??