Skip to content

Commit 93ca186

Browse files
committed
number date fixed
1 parent 6e7b3d7 commit 93ca186

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythainlp/date/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
def now():
88
"""
9-
:return: the current date. Currently only months are spelled out.
9+
:return: the current date with Thai month and Thai year. The month is spelled out in text, and the year is converted from AD to Thai years. (ie: 30 ตุลาคม 2560 20:45:30)
1010
"""
1111
now1 = datetime.datetime.now(tz)
1212
month_name = 'x มกราคม กุมภาพันธ์ มีนาคม เมษายน พฤษภาคม มิถุนายน กรกฎาคม สิงหาคม กันยายน ตุลาคม พฤศจิกายน ธันวาคม'.split()[now1.month]
@@ -38,4 +38,4 @@ def reign_year_to_ad(reign_year,reign):
3838
return ad
3939
# BE คือ พ.ศ.
4040
# AD คือ ค.ศ.
41-
# AH ปีฮิจเราะห์ศักราชเป็นปีพุทธศักราช จะต้องบวกด้วย 1122
41+
# AH ปีฮิจเราะห์ศักราชเป็นปีพุทธศักราช จะต้องบวกด้วย 1122

0 commit comments

Comments
 (0)