@Override public Void visit(ScalarDate value, StringBuilder arg) { arg.append('"') //this prints the value on ISO-8601, which is the recommended format on PostgreSQL .append(value.getValue().toString()) .append('"'); return null; }
@Override public Void visit(ScalarDate value, StringBuilder arg) { arg.append('\'') //this prints the value on ISO-8601, which is the recommended format on PostgreSQL .append(value.getValue().toString()) .append('\''); return null; }
@Override public Void visit(ScalarDate value, StringBuilder arg) { arg.append('\'') //this prints the value on ISO-8601, which is the recommended format on PostgreSQL .append(value.getValue().toString()) .append('\''); return null; }
@Override public Void visit(ScalarDate value, StringBuilder arg) { arg.append('"') //this prints the value on ISO-8601, which is the recommended format on PostgreSQL .append(value.getValue().toString()) .append('"'); return null; }
@Override public String toString() { return getValue().toString(); }
@Override public String toString() { return getValue().toString(); }
/** * Outputs this date-time as a {@code String}, such as {@code 2007-12-03T10:15:30}. * <p> * The output will be one of the following ISO-8601 formats: * <p><ul> * <li>{@code yyyy-MM-dd'T'HH:mm}</li> * <li>{@code yyyy-MM-dd'T'HH:mm:ss}</li> * <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSS}</li> * <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSSSSS}</li> * <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS}</li> * </ul><p> * The format used will be the shortest that outputs the full value of * the time where the omitted parts are implied to be zero. * * @return a string representation of this date-time, not null */ @Override public String toString() { return date.toString() + 'T' + time.toString(); }
/** * Outputs this date-time as a {@code String}, such as {@code 2007-12-23T10:15:30}. * <p> * The output will be one of the following ISO-8601 formats: * <p><ul> * <li>{@code yyyy-MM-dd'T'HH:mm}</li> * <li>{@code yyyy-MM-dd'T'HH:mm:ss}</li> * <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSS}</li> * <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSSSSS}</li> * <li>{@code yyyy-MM-dd'T'HH:mm:ss.SSSSSSSSS}</li> * </ul><p> * The format used will be the shortest that outputs the full value of * the time where the omitted parts are implied to be zero. * * @return a string representation of this date-time, not null */ @Override public String toString() { return date.toString() + 'T' + time.toString(); }
@Override public void serialize(LocalDate date, JsonGenerator generator, SerializerProvider provider) throws IOException { if (useTimestamp(provider)) { generator.writeStartArray(); generator.writeNumber(date.getYear()); generator.writeNumber(date.getMonthValue()); generator.writeNumber(date.getDayOfMonth()); generator.writeEndArray(); } else { String str = (_formatter == null) ? date.toString() : date.format(_formatter); generator.writeString(str); } }
mTxtTopicTime.setText(mTopicBean.getFormattedPublishDate().toLocalDate().toString() + " " + mTopicBean.getFormattedPublishDate().toLocalTime().toString().substring(0, 8)); } else {
collapsibleCalendar.addEventTag(tomorrow, Color.BLUE); Log.d("Testing date ", collapsibleCalendar.getSelectedDay().toString()); collapsibleCalendar.setCalendarListener(new CollapsibleCalendar.CalendarListener() { @Override