@staticmethod
def timedelta_to_yaml(representer, node):
    """Convert datetime.timedelta to YAML.

        Value is total number of seconds."""
    return representer.represent_scalar('!datetime.timedelta', str(node.
        total_seconds()))
