Commit 6e2de88c authored by Sriram Karra's avatar Sriram Karra

Helper routine to convert a date string to a Pytime Object

parent 223b2ecc
......@@ -11,6 +11,15 @@
## Licensed under the GPL v3
##
import pywintypes
def yyyy_mm_dd_to_pytime (date_str):
dt = datetime.strptime(date_str, '%Y-%m-%d')
return pywintypes.Time(dt.timetuple())
def pytime_to_datetime (pyt):
return None
def get_link_rel (links, rel):
"""From a Google data entry links array, fetch the link with the
specifirf 'rel' attribute. examples of values for 'rel' could be:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment