mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-12-25 20:37:59 +01:00
Simplify ReferenceTime.now()
This commit is contained in:
parent
23514f1d0e
commit
4adc2722bd
1 changed files with 1 additions and 5 deletions
|
@ -23,11 +23,7 @@ interface ReferenceTime {
|
||||||
*/
|
*/
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun now(): ReferenceTime {
|
fun now(): ReferenceTime {
|
||||||
val now = Date()
|
return timestamp(Date())
|
||||||
return object: ReferenceTime {
|
|
||||||
override val timestamp: Date
|
|
||||||
get() = now
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue