com.redhat.et.silex.util

DateTimeUTC

case class DateTimeUTC(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int, millis: Int = 0) extends Product with Serializable

A simple structure representing a calendar date in UTC.

This class is deliberately extremely simple and delegates out to joda-time for its actual functionality; it exists solely to abstract away our choice of date and time library. (In JDK 8, it would probably make sense to use the new standard library date and time classes.)

If you need to deal with multiple time zones or different calendars, you're probably best served by using something more sophisticated (although the from method in the companion object to convert from a org.joda.time.DateTime will convert to UTC first).

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DateTimeUTC
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DateTimeUTC(year: Int, month: Int, day: Int, hour: Int, minute: Int, second: Int, millis: Int = 0)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def as[T](implicit ev: (DateTimeUTC) ⇒ T): T

    Converts from DateTimeUTC to T, if an appropriate implicit conversion function is in scope

    Converts from DateTimeUTC to T, if an appropriate implicit conversion function is in scope

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. lazy val asSecondsSinceEpoch: Int

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. val day: Int

  11. lazy val dayOfYear: Int

  12. def daysBetween(other: DateTimeUTC): Int

  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. val hour: Int

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. val millis: Int

  19. val minute: Int

  20. val month: Int

  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. val second: Int

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. val year: Int

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped