adding doc for the default clock time provision
This commit is contained in:
parent
5d1812008d
commit
fdfac8d20a
@ -23,6 +23,13 @@ interface Clock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class DefaultClock @Inject constructor() : Clock {
|
class DefaultClock @Inject constructor() : Clock {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provides a UTC epoch in milliseconds
|
||||||
|
*
|
||||||
|
* This value is not guaranteed to be correct with reality
|
||||||
|
* as a User can override the system time and date to any values.
|
||||||
|
*/
|
||||||
override fun epochMillis(): Long {
|
override fun epochMillis(): Long {
|
||||||
return System.currentTimeMillis()
|
return System.currentTimeMillis()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user