'Parse a human readable string of a timestamp (in local time).
Args:
string: The string to parse.
eoy: If True, sets the default value to the end of the year.
Usually this method returns a timestamp where each field that is
not present in the given string is filled with values from the date
January 1st of the current year, midnight. Sometimes it makes more
sense to compare against the end of a period so if eoy is set, the
default values are copied from the 31st of December of the current
year, 23:59h.
Returns:
The parsed timestamp.'

@classmethod
def _ParseFromHumanReadable(cls, string, eoy=False):

    if eoy:
        default = datetime.datetime(time.gmtime().tm_year, 12, 31, 23, 59, tzinfo=dateutil.tz.tzutc())
    else:
        default = datetime.datetime(time.gmtime().tm_year, 1, 1, 0, 0, tzinfo=dateutil.tz.tzutc())
    timestamp = parser.parse(string, default=default)
    return (calendar.timegm(timestamp.utctimetuple()) * cls.converter)
