Closed 0xdolan closed 6 years ago
When testing your module, the result in Sublime Text 3 and Python IDLE is the same and none of them show the Day name (for instance: Jomeh), but when using the Python or CMD directly to work with the same code, it works fine! Test:
from persiantools.jdatetime import JalaliDate from datetime import datetime print(datetime.today()) # Output: 2018-08-24 12:33:20.700418 print(JalaliDate.today()) # Output: 1397-06-02 print(JalaliDate(1369, 7, 1)) # Output: 1369-07-01
from persiantools.jdatetime import JalaliDate
from datetime import datetime
print(datetime.today()) # Output: 2018-08-24 12:33:20.700418
print(JalaliDate.today()) # Output: 1397-06-02
print(JalaliDate(1369, 7, 1)) # Output: 1369-07-01
when using cmd => __repr__ when using print => __str__
__repr__
print
__str__
When testing your module, the result in Sublime Text 3 and Python IDLE is the same and none of them show the Day name (for instance: Jomeh), but when using the Python or CMD directly to work with the same code, it works fine! Test:
from persiantools.jdatetime import JalaliDate
from datetime import datetime
print(datetime.today()) # Output: 2018-08-24 12:33:20.700418
print(JalaliDate.today()) # Output: 1397-06-02
print(JalaliDate(1369, 7, 1)) # Output: 1369-07-01