def datetime_to_W3CDTF(dt):
 return datetime.datetime.strftime(dt, W3CDTF_FORMAT)

def datetime_to_W3CDTF ( dt ) : return datetime . datetime . strftime ( dt , W3CDTF_FORMAT )
convert from a datetime to a timestamp string .