$ts
Returns a random BSON Timestamp.
Aliases: $ts
, $mgTimestamp
Options¶
t
(optional) Seconds since epoch. Default random.i
(optional) Increment value. Default random.
Example¶
{
"ts": {
"$ts": {
"t": "$int",
"i": 20
}
}
}
{
"ts": Timestamp(1597439758, 20)
}