是否有Atom日期的日期格式化工具。Atom的Java解析器和格式化器DateFormat
根據此鏈接: http://tools.ietf.org/html/rfc4287
Such date values happen to be compatible with the following
specifications: [ISO.8601.1988], [W3C.NOTE-datetime-19980827], and
[W3C.REC-xmlschema-2-20041028].
Example Date constructs:
<updated>2003-12-13T18:30:02Z</updated>
<updated>2003-12-13T18:30:02.25Z</updated>
<updated>2003-12-13T18:30:02+01:00</updated>
<updated>2003-12-13T18:30:02.25+01:00</updated>
我試圖用喬達ISODateTimeFormat.dateTime();
,但它似乎在沒有毫秒(2003-12-13T18它不處理解析:30:02Z爲爲例)。
解析所有這些日期格式的最簡單方法是什麼?