1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-09-27 18:19:34 +02:00

Simplify ReferenceTime.now()

This commit is contained in:
Paul Schaub 2023-06-30 18:04:58 +02:00
parent 8d68a29836
commit 3ddb73c1d6
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -23,11 +23,7 @@ interface ReferenceTime {
*/
@JvmStatic
fun now(): ReferenceTime {
val now = Date()
return object: ReferenceTime {
override val timestamp: Date
get() = now
}
return timestamp(Date())
}
/**