Skip to content

goutham-sp/time-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

time-converter

string_to_datetime.py : Converts a sting like date or time to a datetime object.

For example,
  Mary will open her shop at 10am mondays and 11am tuesdays.
  
  will be converted to,
  
    {
      'possible_dates' : [datetime.datetime(2018, 4, 30, 10, 0, 0, 0), datetime.datetime(2018, 5, 1, 11, 0, 0, 0)],
      'text' : 'Mary will open her shop at 10am mondays and 11am tuesdays.'
    }

usage

from string_to_datetime import GetTime

GetTime_Object = GetTime(text="text to get time from", zone='time zone as string')

time_found = GetTime_Object()

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages