mhajiloo / persiantools

Jalali date and datetime with other tools
MIT License
69 stars 5 forks source link

Why the result is not the same in Python and Sublime Text 3? #6

Closed 0xdolan closed 6 years ago

0xdolan commented 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

1 2

mhajiloo commented 6 years ago

when using cmd => __repr__ when using print => __str__