get Time Span By Now
Return the time span by now, in unit.
The pattern is {@code yyyy-MM-dd HH:mm:ss}
.
Return
the time span by now, in unit
Parameters
time
The formatted time string.
unit
The unit of time span.
open fun getTimeSpanByNow(time: String, format: DateFormat, unit: Int): Long
Content copied to clipboard
Return the time span by now, in unit.
Return
the time span by now, in unit
Parameters
time
The formatted time string.
format
The format.
unit
The unit of time span.
Return the time span by now, in unit.
Return
the time span by now, in unit
Parameters
date
The date.
unit
The unit of time span.
Return the time span by now, in unit.
Return
the time span by now, in unit
Parameters
millis
The milliseconds.
unit
The unit of time span.