Java Code Examples for com.fasterxml.jackson.databind.util.ISO8601Utils#format()

The following examples show how to use com.fasterxml.jackson.databind.util.ISO8601Utils#format() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ISO8601DateFormatWithMilliSeconds.java    From botanic-ng with Apache License 2.0 5 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)
{
	final String value = ISO8601Utils.format(date, true);
	toAppendTo.append(value);
	return toAppendTo;
}
 
Example 2
Source File: RFC3339DateFormat.java    From tutorials with MIT License 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 3
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 4
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 5
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 6
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
    String value = ISO8601Utils.format(date, true);
    toAppendTo.append(value);
    return toAppendTo;
}
 
Example 7
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 8
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
    String value = ISO8601Utils.format(date, true);
    toAppendTo.append(value);
    return toAppendTo;
}
 
Example 9
Source File: RFC3339DateFormat.java    From swaggy-jenkins with MIT License 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 10
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 11
Source File: JsonHelper.java    From emodb with Apache License 2.0 4 votes vote down vote up
/** Formats the specified timestamp as an ISO 8601 string with milliseconds and UTC timezone. */
public static String formatTimestamp(long millis) {
    return ISO8601Utils.format(new Date(millis), true);
}
 
Example 12
Source File: RFC3339DateFormat.java    From cyberduck with GNU General Public License v3.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 13
Source File: RFC3339DateFormat.java    From cyberduck with GNU General Public License v3.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 14
Source File: ResourceDto.java    From brooklyn-server with Apache License 2.0 4 votes vote down vote up
@JsonGetter("created")
public String getCreatedAsString() {
    return created==null ? null : ISO8601Utils.format(created);
}
 
Example 15
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 16
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 17
Source File: RFC3339DateFormat.java    From exo-demo with MIT License 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
    String value = ISO8601Utils.format(date, true);
    toAppendTo.append(value);
    return toAppendTo;
}
 
Example 18
Source File: RFC3339DateFormat.java    From siddhi with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
    String value = ISO8601Utils.format(date, true);
    toAppendTo.append(value);
    return toAppendTo;
}
 
Example 19
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}
 
Example 20
Source File: RFC3339DateFormat.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
@Override
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
  String value = ISO8601Utils.format(date, true);
  toAppendTo.append(value);
  return toAppendTo;
}