Class

org.apache.daffodil.calendar

DFDLDateTime

Related Doc: package calendar

Permalink

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

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

Instance Constructors

  1. new DFDLDateTime(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: DFDLDateTime): Boolean

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

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

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

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

    Permalink
  8. def adjustTimeZone(cal: Calendar, hours: Int, minutes: Int): Calendar

    Permalink
  9. def apply(cal: Calendar, expectsTZ: Boolean): DFDLDateTime

    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.

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. val calendar: Calendar

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

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

    Permalink
    Definition Classes
    DFDLCalendar
  14. final val dateFormatNoTZ: String

    Permalink
    Definition Classes
    DFDLCalendar
  15. final val dateTimeFormat: String

    Permalink
    Definition Classes
    DFDLCalendar
  16. final val dateTimeFormatNoTZ: String

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. 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
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def getDateTimeMinusFourteenHours: DFDLDateTime

    Permalink
  24. def getDateTimePlusFourteenHours: DFDLDateTime

    Permalink
  25. def getField(fieldIndex: Int): Int

    Permalink
    Definition Classes
    DFDLCalendar
  26. def getNormalizedCalendar(): DFDLDateTime

    Permalink
  27. 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
  28. def hasTimeZone: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  32. def normalizeCalendar(cal: Calendar): Calendar

    Permalink

    Normalize the calendar to GMT

  33. lazy val normalizedCalendar: Calendar

    Permalink
    Attributes
    protected
  34. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  36. 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
  37. val parsedTZ: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  39. final val timeFormat: String

    Permalink
    Definition Classes
    DFDLCalendar
  40. final val timeFormatNoTZ: String

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

    Permalink
    Definition Classes
    DFDLDateTimeDFDLCalendar
  42. def toDate(): DFDLDate

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

    Permalink
    Definition Classes
    ToDateTimeMixin
  44. final def toJBigDecimal: BigDecimal

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

    Permalink
    Definition Classes
    DFDLCalendar → AnyRef → Any
  46. def toTime(): DFDLTime

    Permalink
    Definition Classes
    ToTimeMixin
  47. final val tzFormat: String

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

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

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

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

Inherited from Product

Inherited from Equals

Inherited from ToTimeMixin

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