Class

org.apache.daffodil.calendar

DFDLDate

Related Doc: package calendar

Permalink

case class DFDLDate(calendar: Calendar, parsedTZ: Boolean) extends DFDLCalendar with ToDateTimeMixin with ToDateMixin with Product with Serializable

Linear Supertypes
Product, Equals, ToDateMixin, ToDateTimeMixin, DFDLCalendar, Serializable, Serializable, OrderedCalendar, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DFDLDate
  2. Product
  3. Equals
  4. ToDateMixin
  5. ToDateTimeMixin
  6. DFDLCalendar
  7. Serializable
  8. Serializable
  9. OrderedCalendar
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DFDLDate(calendar: Calendar, parsedTZ: Boolean)

    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 <(that: DFDLDate): Boolean

    Permalink
  4. def <=(that: DFDLDate): Boolean

    Permalink
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >(that: DFDLDate): Boolean

    Permalink
  7. def >=(that: DFDLDate): Boolean

    Permalink
  8. def apply(cal: Calendar, expectsTZ: Boolean): DFDLDate

    Permalink

    This apply method supplies a way to just specify 'no time zone' when one was not expected.

    This apply method supplies a way to just specify 'no time zone' when one was not expected. This just so happens to be the same as GMT.

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. val calendar: Calendar

    Permalink
    Definition Classes
    DFDLDateDFDLCalendar
  11. def clone(): AnyRef

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

    Permalink
    Definition Classes
    DFDLCalendar
  13. final val dateFormatNoTZ: String

    Permalink
    Definition Classes
    DFDLCalendar
  14. final val dateTimeFormat: String

    Permalink
    Definition Classes
    DFDLCalendar
  15. final val dateTimeFormatNoTZ: String

    Permalink
    Definition Classes
    DFDLCalendar
  16. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    DFDLDate → Equals → AnyRef → Any
  18. lazy val fields: ArraySeq[Int]

    Permalink
    Attributes
    protected
    Definition Classes
    OrderedCalendar
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def getCalendar(): Calendar

    Permalink

    Returns the ICU Calendar object.

    Returns the ICU Calendar object.

    We represent 'No time zone' by TimeZone.UNKNOWN_ZONE

    Definition Classes
    DFDLCalendar
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def getField(fieldIndex: Int): Int

    Permalink
    Definition Classes
    DFDLCalendar
  23. def getTimeZoneString: String

    Permalink

    Returns the TimeZone in the format of "+00:00"

    Returns the TimeZone in the format of "+00:00"

    Definition Classes
    DFDLCalendar
  24. def hasTimeZone: Boolean

    Permalink
    Definition Classes
    DFDLCalendar
  25. def isFieldSet(fieldIndex: Int): Boolean

    Permalink
    Definition Classes
    DFDLCalendar
  26. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def order(p: DFDLDateTime, q: DFDLDateTime): DFDLCalendarOrder

    Permalink

    From Section 3.2.7.4 of http://www.w3.org/TR/xmlschema-2/#dateTime

    From Section 3.2.7.4 of http://www.w3.org/TR/xmlschema-2/#dateTime

    1. Normalize P and Q. That is, if there is a timezone present, but it is not Z, convert it to Z using the addition operation defined in: http://www.w3.org/TR/xmlschema-2/#adding-durations-to-dateTimes

    Thus 2000-03-04T23:00:00+03:00 normalizes to 2000-03-04T20:00:00Z

    B. If P and Q either both have a time zone or both do not have a time zone, compare P and Q field by field from the year field down to the second field, and return a result as soon as it can be determined. That is:

    1. For each i in {year, month, day, hour, minute, second}
      1. If P[i] and Q[i] are both not specified, continue to the next i b. If P[i] is not specified and Q[i] is, or vice versa, stop and return P <> Q c. If P[i] < Q[i], stop and return P < Q d. If P[i] > Q[i], stop and return P > Q 2. Stop and return P = Q

    C. Otherwise, if P contains a time zone and Q does not, compare as follows:

    1. P < Q if P < (Q with time zone +14:00) 2. P > Q if P > (Q with time zone -14:00) 3. P <> Q otherwise, that is, if (Q with time zone +14:00) < P < (Q with time zone -14:00)

    D. Otherwise, if P does not contain a time zone and Q does, compare as follows:

    1. P < Q if (P with time zone -14:00) < Q. 2. P > Q if (P with time zone +14:00) > Q. 3. P <> Q otherwise, that is, if (P with time zone +14:00) < Q < (P with time zone -14:00)
    Definition Classes
    OrderedCalendar
  31. val parsedTZ: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  33. final val timeFormat: String

    Permalink
    Definition Classes
    DFDLCalendar
  34. final val timeFormatNoTZ: String

    Permalink
    Definition Classes
    DFDLCalendar
  35. lazy val tlFormatter: ThreadLocal[SimpleDateFormat]

    Permalink
    Definition Classes
    DFDLDateDFDLCalendar
  36. def toDate(): DFDLDate

    Permalink
    Definition Classes
    ToDateMixin
  37. def toDateTime(): DFDLDateTime

    Permalink
    Definition Classes
    ToDateTimeMixin
  38. final def toJBigDecimal: BigDecimal

    Permalink
    Definition Classes
    DFDLCalendar
  39. def toString(): String

    Permalink
    Definition Classes
    DFDLCalendar → AnyRef → Any
  40. final val tzFormat: String

    Permalink
    Definition Classes
    DFDLCalendar
  41. final def wait(): Unit

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

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

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

Inherited from Product

Inherited from Equals

Inherited from ToDateMixin

Inherited from ToDateTimeMixin

Inherited from DFDLCalendar

Inherited from Serializable

Inherited from Serializable

Inherited from OrderedCalendar

Inherited from AnyRef

Inherited from Any

Ungrouped