millisecond
Returns the millisecond portion of a date as a number between 0 and 999.
The accepted date types are Instant, ObjectId and Timestamp.
Example
class User(
val name: String,
val birthdate: Instant,
val birthmillisecond: Int? = null,
)
users.updateManyWithPipeline {
set {
User::birthmillisecond set User::birthdate.millisecond
}
}Content copied to clipboard