Class GDt

All Implemented Interfaces:
Iterable<Item>

public final class GDt extends ADate
Simple date item, used for xs:gYearMonth, xs:gYear, xs:gMonthDay, xs:gDay and xs:gMonth.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • GDt

      public GDt(ADate date, Type type)
      Constructor.
      Parameters:
      date - date
      type - item type
    • GDt

      public GDt(byte[] date, Type type, InputInfo ii) throws QueryException
      Constructor.
      Parameters:
      date - date
      type - item type
      ii - input info
      Throws:
      QueryException - query exception
  • Method Details

    • timeZone

      public void timeZone(DTDur zone, boolean d, InputInfo ii)
      Description copied from class: ADate
      Adjusts the timezone.
      Specified by:
      timeZone in class ADate
      Parameters:
      zone - timezone (may be null)
      d - indicates if zone has been specified
      ii - input info
    • diff

      public int diff(Item item, Collation coll, InputInfo ii) throws QueryException
      Description copied from class: Item
      Returns the difference between the current and the specified item. This function is overwritten by the corresponding implementations.
      Overrides:
      diff in class ADate
      Parameters:
      item - item to be compared
      coll - collation (can be null)
      ii - input info (can be null)
      Returns:
      difference
      Throws:
      QueryException - query exception
    • string

      public byte[] string(InputInfo ii)
      Description copied from class: Item
      Returns a string representation of the value.
      Overrides:
      string in class ADate
      Parameters:
      ii - input info (can be null)
      Returns:
      string value