io.data2viz.time.Millisecond.kt Maven / Gradle / Ivy
package io.data2viz.time
class Millisecond : Interval(
fun (date:Date): Date {
return date
},
fun (date:Date, step:Long): Date {
date.plusMilliseconds(step)
return date
},
fun (start:Date, end:Date): Int {
return (start.millisecondsBetween(end)).toInt()
},
fun (date:Date): Int {
return date.millisecond()
}
)
val timeMillisecond = Millisecond()