from datetime import datetime


def to_timestamp(dt=None):
    """Given a datetime object, returns the expected timestamp.
    If none is provided, datetime.utcnow() is used.
    """
    if dt is None:
        dt = datetime.utcnow()
    return '{}+00:00'.format(dt.isoformat())