@staticmethod<EOL><INDENT>def _parse_time(time_str, property_name):<DEDENT>
if not time_str:<EOL><INDENT>return<EOL><DEDENT>parsed = parse_date(time_str)<EOL>if not parsed:<EOL><INDENT>raise UserException("<STR_LIT>".format(property_name))<EOL><DEDENT>return to_utc(parsed)<EOL>
Parse the time from the given string, convert to UTC, and return the datetime object

Parameters
----------
time_str : str
    The time to parse

property_name : str
    Name of the property where this time came from. Used in the exception raised if time is not parseable

Returns
-------
datetime.datetime
    Parsed datetime object

Raises
------
samcli.commands.exceptions.UserException
    If the string cannot be parsed as a timestamp