def _timestamp(when):
    """
    Python 2 compatibility for `datetime.timestamp()`.
    """
    return (time.mktime(when.timetuple()) if sys.version_info < (3,) else
            when.timestamp())
def _timestamp(when):
    """
    Python 2 compatibility for `datetime.timestamp()`.
    """
    return (time.mktime(when.timetuple()) if sys.version_info < (3,) else
            when.timestamp())
def _timestamp ( when ) : return ( time . mktime ( when . timetuple ( ) ) if sys . version_info < ( 3 , ) else when . timestamp ( ) )
Python 2 compatibility for `datetime.timestamp()`.
Python 2 compatibility for datetime . timestamp () .