【发布时间】:2018-01-22 20:48:53
【问题描述】:
我正在尝试设置 CalDav Client vor iCloud。我正在使用以下 PROPFIND http curl:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<d:propfind xmlns:d="DAV:" xmlns:cs="http://calendarserver.org/ns/">
<d:prop>
<d:displayname/>
<cs:getctag/>
<d:resource-class/>
<d:getlastmodified/>
</d:prop>
</d:propfind>
响应是这样的:
<getlastmodified>Mon, 22 Jan 2018 20:03:49 GMT</getlastmodified>
<creationdate>2013-04-02T20:12:23Z</creationdate>
<auto-provisioned xmlns="urn:mobileme:server-to-server"/>
我知道我想知道我是否可以得到不同格式的标签格式?最好是 2013-04-02T20:12:23Z。
非常感谢!
【问题讨论】:
-
如果你的 shell 是 bash,你可以得到它: date -d 'Mon, 22 Jan 2018 20:03:49 GMT' --iso-8601=seconds
-
谢谢!但我必须使用卷曲。你知道是否有一个 xml 选项吗?
-
我不知道。
标签: xml date format icloud caldav