diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-27 17:08:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-27 17:08:44 -0400 |
commit | 7321f5e4620b798b39d6dad2406347fc099f2e37 (patch) | |
tree | 49509260abafa44d26ec579db356211b4014d87a /cmd/podman | |
parent | 578ffd7700157a779339e560885a6ce853d95c76 (diff) | |
parent | 22b421dd7e469b2015797ba93849474d39430994 (diff) | |
download | podman-7321f5e4620b798b39d6dad2406347fc099f2e37.tar.gz podman-7321f5e4620b798b39d6dad2406347fc099f2e37.tar.bz2 podman-7321f5e4620b798b39d6dad2406347fc099f2e37.zip |
Merge pull request #14034 from rhatdan/history
Add CreatedSince & CreatedAt format fields to podman image history
Diffstat (limited to 'cmd/podman')
-rw-r--r-- | cmd/podman/images/history.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/podman/images/history.go b/cmd/podman/images/history.go index c05d3475b..26a4b6c3b 100644 --- a/cmd/podman/images/history.go +++ b/cmd/podman/images/history.go @@ -168,3 +168,11 @@ func (h historyReporter) ID() string { } return h.ImageHistoryLayer.ID } + +func (h historyReporter) CreatedAt() string { + return time.Unix(h.ImageHistoryLayer.Created.Unix(), 0).UTC().String() +} + +func (h historyReporter) CreatedSince() string { + return h.Created() +} |