Skip to content

Add Thai Solar Date convert to Thai Lunar Date #998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Nov 15, 2024
Merged

Conversation

wannaphong
Copy link
Member

@wannaphong wannaphong commented Nov 15, 2024

Thank @cstorm125 for the function name.

What does this changes

Add Thai Solar Date convert to Thai Lunar Date

Fixed #993

>>> from pythainlp.util import to_lunar_date
>>> from datetime import date
>>> 
>>> to_lunar_date(date(2025,2,25))
'แรม 13 ค่ำ เดือน 3'

Your checklist for this pull request

  • Passed code styles and structures
  • Passed code linting checks and unit test

Thank @cstorm125 for the function name.
@pep8speaks
Copy link

pep8speaks commented Nov 15, 2024

Hello @wannaphong! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-11-15 16:26:27 UTC

@coveralls
Copy link

coveralls commented Nov 15, 2024

Coverage Status

coverage: 52.515% (+0.4%) from 52.102%
when pulling 99df362 on add-thai-lunar-date
into 630b355 on dev.

@bact bact added the enhancement enhance functionalities label Nov 15, 2024
@bact
Copy link
Member

bact commented Nov 15, 2024

Few issues

Copy link
Member

@bact bact left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
20.3% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@wannaphong wannaphong merged commit c5de73c into dev Nov 15, 2024
36 of 40 checks passed
@wannaphong wannaphong deleted the add-thai-lunar-date branch November 15, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhance functionalities
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add Thai Solar Date convert to Thai Lunar Date
4 participants