Skip to content

Little Python lib for detecting the date/time format of a given string

License

Notifications You must be signed in to change notification settings

davirtavares/dateformat-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dateformat-detector

Little Python lib for detecting the date/time format of a given string.

This lib should be useful for guessing date and time string of webpages, should not be confused with datetime guessing and extraction. This lib only detects the format (the same used to convert to human-readable), this difference brings great performance improvements and reliably, as parsing datetime with a known format is far alway fast from trying to detect it. Once parsed one could store it and raise an error if an expected page changes its date/time format.

For locale info, it's used PyICU (libICU wrapper). So it tries to distinguish date part positions as well long month names, weekdays and so, independently of locale.

About

Little Python lib for detecting the date/time format of a given string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages