/** * Output the time in ISO8601 format (HH:mm:ss.SSS). * * @return ISO8601 time formatted string. */ @ToString public String toString() { return ISODateTimeFormat.time().print(this); }
formatter = ISODateTimeFormat.ordinalDateTimeNoMillis(); } else if ("time".equals(input)) { formatter = ISODateTimeFormat.time(); } else if ("timeNoMillis".equals(input) || "time_no_millis".equals(input)) { formatter = ISODateTimeFormat.timeNoMillis();
/** * Output the time in ISO8601 format (HH:mm:ss.SSS). * * @return ISO8601 time formatted string. */ @ToString public String toString() { return ISODateTimeFormat.time().print(this); }
break; case TIME: dateTimeFormatter = ISODateTimeFormat.time(); break; case DATE_TIME:
break; case TIME: dateTimeFormatter = ISODateTimeFormat.time(); break; case DATE_TIME:
time(bld, workingFields, extended, strictISO, reducedPrec, datePresent);
time(bld, workingFields, extended, strictISO, reducedPrec, datePresent);
Assert.assertThat(ISO_LOCAL_TIME.format(withJsr310.getT()), is(ISODateTimeFormat.time().print(withJoda.getT()))); Assert.assertThat(ISO_INSTANT.format(withJsr310.getTs()), is(ISODateTimeFormat.dateTimeNoMillis().print(withJoda.getTs()))); Assert.assertThat(withJsr310.getDec(), comparesEqualTo(withJoda.getDec()));
/** * Output the time in ISO8601 format (HH:mm:ss.SSSZZ). * * @return ISO8601 time formatted string. */ @ToString public String toString() { return ISODateTimeFormat.time().print(this); }
/** * Returns a formatter for a two digit hour of day, two digit minute of * hour, two digit second of minute, three digit fraction of second, and * time zone offset prefixed by 'T' ('T'HH:mm:ss.SSSZZ). * The time zone offset is 'Z' for zero, and of the form '\u00b1HH:mm' for non-zero. * The parser is strict by default, thus time string {@code 24:00} cannot be parsed. * * @return a formatter for 'T'HH:mm:ss.SSSZZ */ public static DateTimeFormatter tTime() { if (tt == null) { tt = new DateTimeFormatterBuilder() .append(literalTElement()) .append(time()) .toFormatter(); } return tt; }
time(bld, workingFields, extended, strictISO, reducedPrec, datePresent);
/** * Output the time in ISO8601 format (HH:mm:ss.SSSZZ). * * @return ISO8601 time formatted string. */ public String toString() { return ISODateTimeFormat.time().print(this); }
/** * Output the time in ISO8601 format (HH:mm:ss.SSS). * * @return ISO8601 time formatted string. */ @ToString public String toString() { return ISODateTimeFormat.time().print(this); }
/** * Output the time in ISO8601 format (HH:mm:ss.SSS). * * @return ISO8601 time formatted string. */ @ToString public String toString() { return ISODateTimeFormat.time().print(this); }
/** * Output the time in ISO8601 format (HH:mm:ss.SSS). * * @return ISO8601 time formatted string. */ @ToString public String toString() { return ISODateTimeFormat.time().print(this); }
/** * Output the time in ISO8601 format (HH:mm:ss.SSS). * * @return ISO8601 time formatted string. */ @ToString public String toString() { return ISODateTimeFormat.time().print(this); }
@Override public void writeTime(boolean isNull) throws IOException { TimeMilliWriter t = writer.timeMilli(fieldName); if(!isNull){ DateTimeFormatter f = ISODateTimeFormat.time(); t.writeTimeMilli((int) com.dremio.common.util.DateTimes.toMillis(f.parseLocalDateTime(parser.getValueAsString()))); } }
@Override public void writeTime(boolean isNull) throws IOException { TimeMilliWriter t = writer.timeMilli(); if(!isNull){ DateTimeFormatter f = ISODateTimeFormat.time(); t.writeTimeMilli((int) com.dremio.common.util.DateTimes.toMillis(f.parseLocalDateTime(parser.getValueAsString()))); } }
public void setDateContent(DateTime dateContent) { this.dateContent = dateContent.withMillisOfSecond(0); if(XSD.DateTime.equals(getDatatype())) { this.content = DateUtils.getXMLCalendar(this.dateContent).toXMLFormat(); } else if(XSD.Date.equals(getDatatype())) { this.content = ISODateTimeFormat.date().print(dateContent); } else if(XSD.Time.equals(getDatatype())) { this.content = ISODateTimeFormat.time().print(dateContent); } }
public void setDateContent(DateTime dateContent) { this.dateContent = dateContent.withMillisOfSecond(0); if(XSD.DateTime.equals(getDatatype())) { this.content = DateUtils.getXMLCalendar(this.dateContent).toXMLFormat(); } else if(XSD.Date.equals(getDatatype())) { this.content = ISODateTimeFormat.date().print(dateContent); } else if(XSD.Time.equals(getDatatype())) { this.content = ISODateTimeFormat.time().print(dateContent); } }