Simple Date class.
Synopsis:
# get the current date d = Date() d = Date(now = 1) # get 2/12/1999 d = Date(year = 1999, month = 2, day = 12) # get 2/12/1999 from a string d = Date(stdfmt = '2/12/99') d = Date(stdfmt = '2/12/1999') # get a date from the current timeval d = Date(time = time.time()) # get a date infinitely far in the future or past d = Date(foreverPast = 1) d = Date(foreverFuture = 1)
def _parseStd(date):
Parse a mm/dd/yy or mm/dd/yyyy format year. Takes best guess at century. returns a year, month, day tuple.