(date)
Given a datetime object return an integer representation for that datetime
Given a datetime object return an integer representation for that datetime
Given a datetime object return an integer representation for that datetime
def date_to_seconds(date):
  '''
  Given a datetime object return an integer representation for that datetime
  '''
  if isinstance(date, datetime.datetime):
    return (date - datetime.datetime.today()).total_seconds()
  else:
    return - float('inf')
def date_to_seconds ( date ) : if isinstance ( date , datetime . datetime ) : return ( date - datetime . datetime . today ( ) ) . total_seconds ( ) else : return - float ( 'inf' )