public static void printDateTimeString(byte[] b, int s, int l, PrintStream ps)
      throws HyracksDataException {
    long chrononTime = AInt64SerializerDeserializer.getLong(b, s + 1);

    try {
      gCalInstance.getExtendStringRepUntilField(
          chrononTime,
          0,
          ps,
          GregorianCalendarSystem.Fields.YEAR,
          GregorianCalendarSystem.Fields.MILLISECOND,
          true);
    } catch (IOException e) {
      throw new HyracksDataException(e);
    }
  }
  public static void printDateString(byte[] b, int s, int l, PrintStream ps)
      throws HyracksDataException {
    long chrononTime = AInt32SerializerDeserializer.getInt(b, s + 1) * CHRONON_OF_DAY;

    try {
      gCalInstance.getExtendStringRepUntilField(
          chrononTime,
          0,
          ps,
          GregorianCalendarSystem.Fields.YEAR,
          GregorianCalendarSystem.Fields.DAY,
          false);
    } catch (IOException e) {
      throw new HyracksDataException(e);
    }
  }