Java Code Examples for org.threeten.bp.format.DateTimeFormatter#ISO_OFFSET_DATE_TIME
The following examples show how to use
org.threeten.bp.format.DateTimeFormatter#ISO_OFFSET_DATE_TIME .
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: JSONTest.java From openapi-generator with Apache License 2.0 | 5 votes |
@Test public void testDefaultDate() throws Exception { final DateTimeFormatter datetimeFormat = DateTimeFormatter.ISO_OFFSET_DATE_TIME; final String dateStr = "2015-11-07T14:11:05.267Z"; order.setShipDate(datetimeFormat.parse(dateStr, OffsetDateTime.FROM)); String str = json.serialize(order); Type type = new TypeToken<Order>() { }.getType(); Order o = json.deserialize(str, type); assertEquals(dateStr, datetimeFormat.format(o.getShipDate())); }
Example 2
Source File: JSON.java From huaweicloud-cs-sdk with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 3
Source File: JSON.java From huaweicloud-cs-sdk with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 4
Source File: JSON.java From openapi-generator with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 5
Source File: JSON.java From openapi-generator with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 6
Source File: JSON.java From openapi-generator with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 7
Source File: JSON.java From openapi-generator with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 8
Source File: JSON.java From openapi-generator with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 9
Source File: JSON.java From openapi-generator with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 10
Source File: JSON.java From android with MIT License | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 11
Source File: JSON.java From nifi-swagger-client with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 12
Source File: JSON.java From swaggy-jenkins with MIT License | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 13
Source File: JSON.java From swagger-aem with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }
Example 14
Source File: JSON.java From oxd with Apache License 2.0 | 4 votes |
public OffsetDateTimeTypeAdapter() { this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); }