Skip to content

Conversation

wannaphong
Copy link
Member

@wannaphong wannaphong commented Jan 15, 2023

Add thai_strptime from #766

Your checklist for this pull request

🚨Please review the guidelines for contributing to this repository.

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

@wannaphong wannaphong changed the title Add thai_strptime and bc2ad [WIP] Add thai_strptime and bc2ad Jan 15, 2023
@coveralls
Copy link

coveralls commented Jan 15, 2023

Coverage Status

Coverage: 94.404% (+37.6%) from 56.762% when pulling b6e8ec9 on Add-thai-text-strptime into f297305 on dev.

@wannaphong
Copy link
Member Author

wannaphong commented Jan 15, 2023

Example

>>> from pythainlp.util.date import thai_strptime
>>> thai_strptime("15-ก.ค.-2565 09:00:01.10600","%d-%B-%Y %H:%M:%S.%f")
datetime.datetime(2022, 7, 15, 9, 0, 1, 10600, tzinfo=backports.zoneinfo.ZoneInfo(key='Asia/Bangkok'))

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wannaphong wannaphong changed the title [WIP] Add thai_strptime and bc2ad [WIP] Add thai_strptime and convert_years Jan 15, 2023
@wannaphong wannaphong changed the title [WIP] Add thai_strptime and convert_years Add thai_strptime and convert_years Jan 15, 2023
@wannaphong wannaphong requested a review from bact January 16, 2023 09:25
@wannaphong wannaphong linked an issue Jan 16, 2023 that may be closed by this pull request
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wannaphong wannaphong merged commit 2ccae92 into dev Jan 22, 2023
@wannaphong wannaphong added this to the 4.0 milestone Jan 30, 2023
@wannaphong wannaphong mentioned this pull request Apr 1, 2023
@wannaphong wannaphong deleted the Add-thai-text-strptime branch December 4, 2023 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

datetime.strptime with Thai text supported

2 participants