Docker Hub Webhook 发送什么日期格式?
What Date Format does Docker Hub Webhook Send?
我最近构建了一个服务器来处理 docker hub 的 webhook 和 运行 一些取决于输入的作业。
但是,我想在发送这些 webhook 时记录下来,所以我需要知道它们发送时间的格式。
以下是他们的回复片段:
"push_data": {
"pushed_at": 1595947332,
"images": [],
"tag": "latest",
"pusher": "xxxxxx"
}
push_data.pushed_at是什么时间格式?
这看起来像 Unix time。此时间格式是自 00:00 1970 年 1 月 1 日 UTC 以来的秒数。时间 1595947332 是世界标准时间 2020 年 7 月 29 日上午 12:17。这种格式在软件中被广泛使用。
我最近构建了一个服务器来处理 docker hub 的 webhook 和 运行 一些取决于输入的作业。 但是,我想在发送这些 webhook 时记录下来,所以我需要知道它们发送时间的格式。 以下是他们的回复片段:
"push_data": {
"pushed_at": 1595947332,
"images": [],
"tag": "latest",
"pusher": "xxxxxx"
}
push_data.pushed_at是什么时间格式?
这看起来像 Unix time。此时间格式是自 00:00 1970 年 1 月 1 日 UTC 以来的秒数。时间 1595947332 是世界标准时间 2020 年 7 月 29 日上午 12:17。这种格式在软件中被广泛使用。