This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Tool for understanding dates and times

Project Description

# natural_time v1.1.5 A parser for understanding date-times written in a variety of formats

There are many great tools for interpreting dates and times when the format is known, however the aim of this project is to be able to interpret dates and times from much more fuzzy situations (e.g. Tomorrow afternoon at 3) as well as be able to extract the date or time from a sentence (e.g. I have an appointment at 6pm)

Has capability to understand both relative times (e.g. in 5 days) and absolute times (e.g tomorrow at 5pm)

This package can be installed using: pip install natural_time

How to use:
  1. Import the package using: import natural_time
  2. Run the function: natural_time.natural_time(“Your_String_Here”)
  3. Thats it (the natural_time function returns the date as datetime object)

If you find examples of phrases that don’t interpret correcly raise an issue via github and I’ll work on incorporating it, you are welcome to also make contributions to the code.

Release History

Release History

This version
History Node

1.1.5

History Node

1.1.4

History Node

1.1.0

History Node

1.0.6

History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.15

History Node

0.1.14

History Node

0.1.13

History Node

0.1.12

History Node

0.1.11

History Node

0.1.10

History Node

0.1.9

History Node

0.1.7

History Node

0.1.6

History Node

0.1.5

History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
natural_time-1.1.5-py3-none-any.whl (12.8 kB) Copy SHA256 Checksum SHA256 3.6 Wheel Jun 28, 2017
natural_time-1.1.5.tar.gz (10.8 kB) Copy SHA256 Checksum SHA256 Source Jun 28, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting