Aanu Babajide
Aanu Babajide

Reputation: 83

What Date Format does Docker Hub Webhook Send?

I recently built a server to process docker hub's webhook and run some jobs depending on the input. However, I want to log when these webhooks are sent so I need to know the format they send time in. Here is a snippet of their response:

"push_data": {
    "pushed_at": 1595947332,
    "images": [],
    "tag": "latest",
    "pusher": "xxxxxx"
 }

What time format is push_data.pushed_at?

Upvotes: 1

Views: 93

Answers (1)

jkr
jkr

Reputation: 19260

This looks like Unix time. This time format is the number of seconds since 00:00 January 1, 1970 UTC. The time 1595947332 is 12:17 am July 29, 2020 UTC. This format is widely used in software.

Upvotes: 1

Related Questions