Class

com.mediative.amadou

DateIntervalType

Related Doc: package amadou

Permalink

sealed abstract class DateIntervalType extends AnyRef

Base class for specific date intervals

Source
DateInterval.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DateIntervalType
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from DateIntervalType to any2stringadd[DateIntervalType] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (DateIntervalType, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from DateIntervalType to ArrowAssoc[DateIntervalType] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def apply(timestamp: Long): DateInterval

    Permalink

    Represent the interval for a given timestamp using the specified interval type.

    Represent the interval for a given timestamp using the specified interval type.

    This will truncate lower resolution date fields to their initial value, for example for months the day of month field is set to 1.

    Example:

    scala> Day(1431000000000L).format("yyyy-MM-dd HH:mm ZZ")
    res1: String = 2015-05-07 00:00 +0000
    scala> Month(1431000000000L).format("yyyy-MM-dd HH:mm ZZ")
    res2: String = 2015-05-01 00:00 +0000
    scala> Year(1431000000000L).format("yyyy-MM-dd HH:mm ZZ")
    res3: String = 2015-01-01 00:00 +0000
  7. def apply(date: DateInterval): DateInterval

    Permalink

    Create a date interval with a different type and truncate lower resolution date fields accordingly.

    Create a date interval with a different type and truncate lower resolution date fields accordingly.

    Example:

    scala> Day(1431000000000L)
    res1: DateInterval = 2015-05-07
    scala> Week(Day(1431000000000L))
    res2: DateInterval = 2015-W19
    scala> Month(Day(1431000000000L))
    res3: DateInterval = 2015-05
    scala> Quarter(1431000000000L)
    res4: DateInterval = 2015-Q2
    scala> Year(Day(1431000000000L))
    res5: DateInterval = 2015
    scala> Year(Day(1431000000000L)).format("yyyy-MM-dd HH:mm ZZ")
    res6: String = 2015-01-01 00:00 +0000
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. val calendarField: Int

    Permalink
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. val dateFormat: String

    Permalink
  12. def ensuring(cond: (DateIntervalType) ⇒ Boolean, msg: ⇒ Any): DateIntervalType

    Permalink
    Implicit information
    This member is added by an implicit conversion from DateIntervalType to Ensuring[DateIntervalType] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (DateIntervalType) ⇒ Boolean): DateIntervalType

    Permalink
    Implicit information
    This member is added by an implicit conversion from DateIntervalType to Ensuring[DateIntervalType] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): DateIntervalType

    Permalink
    Implicit information
    This member is added by an implicit conversion from DateIntervalType to Ensuring[DateIntervalType] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): DateIntervalType

    Permalink
    Implicit information
    This member is added by an implicit conversion from DateIntervalType to Ensuring[DateIntervalType] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from DateIntervalType to StringFormat[DateIntervalType] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  20. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def parse(input: String): Option[DateInterval]

    Permalink

    Parse a timestamp into a date interval.

    Parse a timestamp into a date interval.

    Example:

    scala> Day.parse("2015-05-07")
    res1: Option[DateInterval] = Some(2015-05-07)
    scala> Day.parse("2015-05-07").get.format("yyyy-MM-dd HH:mm ZZ")
    res2: String = 2015-05-07 00:00 +0000
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def today: DateInterval

    Permalink

    Represent the interval for today using the specified interval type.

    Represent the interval for today using the specified interval type.

    This will truncate lower resolution date fields to their initial value, for example for months the day of month field is set to 1.

  30. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def [B](y: B): (DateIntervalType, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from DateIntervalType to ArrowAssoc[DateIntervalType] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from DateIntervalType to any2stringadd[DateIntervalType]

Inherited by implicit conversion StringFormat from DateIntervalType to StringFormat[DateIntervalType]

Inherited by implicit conversion Ensuring from DateIntervalType to Ensuring[DateIntervalType]

Inherited by implicit conversion ArrowAssoc from DateIntervalType to ArrowAssoc[DateIntervalType]

Ungrouped