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

com.dadrox.scuttle.time.TimeUnit.scala Maven / Gradle / Ivy

There is a newer version: 0.4
Show newest version
package com.dadrox.scuttle.time

import com.dadrox.scuttle.Enum

object TimeUnit extends Enum {
    sealed case class EnumVal private[TimeUnit] (name: String, short: String, msPer: Long) extends Value

    val Week = EnumVal("week", "w", 7 * 24 * 60 * 60 * 1000L)
    val Day = EnumVal("day", "d", 24 * 60 * 60 * 1000L)
    val Hour = EnumVal("hour", "h", 60 * 60 * 1000L)
    val Minute = EnumVal("minute", "m", 60 * 1000L)
    val Second = EnumVal("second", "s", 1000L)
    val Millisecond = EnumVal("millisecond", "ms", 1L)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy