Class/Object

com.twitter.scalding

RichDate

Related Docs: object RichDate | package scalding

Permalink

case class RichDate(timestamp: Long) extends Ordered[RichDate] with Product with Serializable

A value class wrapper for milliseconds since the epoch. Its tempting to extend this with AnyVal but this causes problem with Java code.

Linear Supertypes
Serializable, Serializable, Product, Equals, Ordered[RichDate], Comparable[RichDate], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. RichDate
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichDate(timestamp: Long)

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(interval: Duration): RichDate

    Permalink
  4. def -(that: RichDate): AbsoluteDuration

    Permalink
  5. def -(interval: Duration): RichDate

    Permalink
  6. def <(that: RichDate): Boolean

    Permalink
    Definition Classes
    Ordered
  7. def <=(that: RichDate): Boolean

    Permalink
    Definition Classes
    Ordered
  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def >(that: RichDate): Boolean

    Permalink
    Definition Classes
    Ordered
  10. def >=(that: RichDate): Boolean

    Permalink
    Definition Classes
    Ordered
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def compare(that: RichDate): Int

    Permalink
    Definition Classes
    RichDate → Ordered
  14. def compareTo(that: RichDate): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    RichDate → Equals → AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def format(pattern: String)(implicit tz: TimeZone): String

    Permalink

    Use String.format to format the date, as opposed to toString with uses SimpleDateFormat

  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink

    Make sure the hashCode is the same as Date for the (questionable) choice to make them equal.

    Make sure the hashCode is the same as Date for the (questionable) choice to make them equal. this is the same as what java does (and only sane thing): http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/6-b14/java/util/Date.java#989

    Definition Classes
    RichDate → AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. val timestamp: Long

    Permalink
  27. def toCalendar(implicit tz: TimeZone): Calendar

    Permalink
  28. def toString(fmt: String)(implicit tz: TimeZone): String

    Permalink

    Use SimpleDateFormat to print the string

  29. def toString(): String

    Permalink
    Definition Classes
    RichDate → AnyRef → Any
  30. def value: Date

    Permalink
  31. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[RichDate]

Inherited from Comparable[RichDate]

Inherited from AnyRef

Inherited from Any

Ungrouped