def timestamp(method='<STR_LIT>'):
if method == '<STR_LIT>':<EOL><INDENT>tz_hour = time.timezone // <NUM_LIT><EOL>utc_offset = str(tz_hour) if tz_hour < <NUM_LIT:0> else '<STR_LIT:+>' + str(tz_hour)<EOL>stamp = time.strftime('<STR_LIT>') + utc_offset<EOL>return stamp<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>
make an iso8601 timestamp

Args:
    method (str): type of timestamp

Example:
    >>> stamp = timestamp()
    >>> print('stamp = {!r}'.format(stamp))
    stamp = ...-...-...T...