All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy