timefhuman | Convert natural language date-like strings -- dates , date | Date Time Utils library

 by   alvinwan Python Version: 0.0.5 License: Apache-2.0

kandi X-RAY | timefhuman Summary

kandi X-RAY | timefhuman Summary

timefhuman is a Python library typically used in Utilities, Date Time Utils applications. timefhuman has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can install using 'pip install timefhuman' or download it from GitHub, PyPI.

Convert human-readable, date-like strings written in natural language to Python objects. Describe specific datetimes or ranges of datetimes. Supports Python3+. To start, describe days of the week or times of day in the vernacular. Use any human-readable format with a time range, choices of times, or choices of time ranges. Parse lists of dates and times with more complex relationships. Use the vernacular to describe ranges or days.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              timefhuman has a low active ecosystem.
              It has 68 star(s) with 11 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 11 open issues and 4 have been closed. On average issues are closed in 23 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of timefhuman is 0.0.5

            kandi-Quality Quality

              timefhuman has no bugs reported.

            kandi-Security Security

              timefhuman has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              timefhuman is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              timefhuman releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed timefhuman and discovered the below as its top functions. This is intended to give you an instant insight into timefhuman implemented functionality, and help decide if they suit your requirements.
            • Convert a human readable string into a human readable time
            • Split a string into a list of tokens
            • Convert tokens to tokens
            • Convert day of week to day of week
            • Share two DayToken objects
            • Share property with other
            • Combine two time ranges
            Get all kandi verified functions for this library.

            timefhuman Key Features

            No Key Features are available at this moment for timefhuman.

            timefhuman Examples and Code Snippets

            timefhuman
            Pythondot img1Lines of Code : 22dot img1License : Permissive (Apache-2.0)
            copy iconCopy
            >>> from timefhuman import timefhuman
            >>> timefhuman('upcoming Monday noon')
            datetime.datetime(2018, 8, 6, 12, 0)
            
            >>> timefhuman('7/17 3-4 PM')
            (datetime.datetime(2018, 7, 17, 15, 0), datetime.datetime(2018, 7, 17, 16, 0))  
            Usage
            Pythondot img2Lines of Code : 16dot img2License : Permissive (Apache-2.0)
            copy iconCopy
            >>> import datetime
            >>> now = datetime.datetime(2018, 8, 4, 0, 0)
            >>> timefhuman('upcoming Monday noon', now=now)
            datetime.datetime(2018, 8, 6, 12, 0)
            
            >>> from timefhuman import timefhuman
            >>> now = datet  
            Why
            Pythondot img3Lines of Code : 9dot img3License : Permissive (Apache-2.0)
            copy iconCopy
            >>> import dateparser
            >>> dateparser.parse("7/7/18 3 p.m.")  # yay!
            datetime.datetime(2018, 7, 7, 15, 0)
            >>> dateparser.parse("7/7/18 at 3")  # :(
            >>> dateparser.parse("7/17 12 PM")  # yay!
            datetime.datetime(2018,   

            Community Discussions

            QUESTION

            converting a random string into date in python raises REdefinition of group name 'm'
            Asked 2019-Dec-04 at 16:04

            I have been trying to parse some very old data to structure and store them in a database. I have some random strings that contain dates.

            YEAR:1999 DATE:09/1999

            DATE:09/1996

            DATE:1993

            YEAR:2006 DATE:15/05/06

            YEAR:2019 DATE:JANUARY 3, 2019

            YEAR:2019 DATE:FEB. 14, 2019

            YEAR:2019 DATE: 30/06/2019, JUNE 24, 2019

            as you can see, there's a plethora of possibilities. I have tried with datetime, dateutil, dateparser and timefhuman to quickly get a date from this. None, of them had a desired output. Most success I have had is with dateparser.

            ...

            ANSWER

            Answered 2019-Dec-04 at 16:04

            This is a very verbose parser for the format(s) you provided. Output is given as a list of [year, month, day], where each entry is only present if found in the date.

            Source https://stackoverflow.com/questions/59173175

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install timefhuman

            Install with pip using. Optionally, clone the repository and run python setup.py install.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install timefhuman

          • CLONE
          • HTTPS

            https://github.com/alvinwan/timefhuman.git

          • CLI

            gh repo clone alvinwan/timefhuman

          • sshUrl

            git@github.com:alvinwan/timefhuman.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Date Time Utils Libraries

            moment

            by moment

            dayjs

            by iamkun

            date-fns

            by date-fns

            Carbon

            by briannesbitt

            flatpickr

            by flatpickr

            Try Top Libraries by alvinwan

            TexSoup

            by alvinwanPython

            shiftresnet-cifar

            by alvinwanPython

            tex2py

            by alvinwanPython

            md2py

            by alvinwanPython