kmongo / org.litote.kmongo / currentTimestamp

currentTimestamp

fun <T> currentTimestamp(property: KProperty<T>): Bson (source)

Creates an update that sets the value of the property to the current date as a BSON timestamp.

Parameters

property - the property

Return
the update

Mongodb
.driver.manual reference/operator/update/currentDate/ $currentDate

Mongodb
.driver.manual reference/bson-types/#document-bson-type-timestamp Timestamp