parameters: (offset)
return_statement: return microseconds / (10**6 * 1.0)
docstring: Backport of offset.total_seconds() from python 2.7+.
docstring_summary: Backport of offset.total_seconds() from python 2.7+.
docstring_tokens: Backport of offset . total_seconds () from python 2 . 7 + .
function: def total_seconds(offset):
    """Backport of offset.total_seconds() from python 2.7+."""
    seconds = offset.days * 24 * 60 * 60 + offset.seconds
    microseconds = seconds * 10**6 + offset.microseconds
    return microseconds / (10**6 * 1.0)
function_tokens: def total_seconds ( offset ) : seconds = offset . days * 24 * 60 * 60 + offset . seconds microseconds = seconds * 10 ** 6 + offset . microseconds return microseconds / ( 10 ** 6 * 1.0 )