I am trying to convert oplog ts field to unix epoch time.
oplog document
{
"ts" : Timestamp(6454921106666029, 1),
"t" : NumberLong(2),
"h" : NumberLong(-7592058469580740624),
"v" : 2,
"op" : "n",
"ns" : "",
"o" : {
"msg" : "periodic noop"
}
}
When I run python utility, I am getting below output
python -c 'import util; print util.long_to_bson_ts(6454921106666029)'
Timestamp(1502903, 1872605741)
https://github.com/mongodb-labs/mongo-connector/issues/324
Not sure how to read oplog timestamp in 3.4.
Thanks Pari