def long_to_bson_ts(val):
 seconds = (val >> 32)
 increment = (val & 4294967295)
 return Timestamp(seconds, increment)

def long_to_bson_ts ( val ) : seconds = ( val >> 32 ) increment = ( val & 4294967295 ) return Timestamp ( seconds , increment )
convert integer into bson timestamp .