def get_time_in_millisecs(datetime_obj):
 seconds = (time.mktime(datetime_obj.timetuple()) * 1000)
 return (seconds + (datetime_obj.microsecond / 1000.0))

def get_time_in_millisecs ( datetime_obj ) : seconds = ( time . mktime ( datetime_obj . timetuple ( ) ) * 1000 ) return ( seconds + ( datetime_obj . microsecond / 1000.0 ) )
returns time in milliseconds since the epoch .