Convert a OffsetDateTime to a RFC3339 compliant String. @param time the time to write as String @return the serialized time @throws DateTimeException if something went wrong when serializing the provided time.
(OffsetDateTime time)
| 68 | * @throws DateTimeException if something went wrong when serializing the provided time. |
| 69 | */ |
| 70 | public static String writeTime(OffsetDateTime time) throws DateTimeException { |
| 71 | return ISO_OFFSET_DATE_TIME.format(time); |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Convert an attribute/extension {@link OffsetDateTime} to a RFC3339 compliant {@link String}. |