We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b74160 commit 0b9d582Copy full SHA for 0b9d582
1 file changed
cli/command/formatter/container.go
@@ -193,7 +193,9 @@ func (c *ContainerContext) Command() string {
193
return strconv.Quote(command)
194
}
195
196
-// CreatedAt returns the "Created" date/time of the container as a unix timestamp.
+// CreatedAt returns the formatted string representing the container's creation date/time.
197
+// The format may include nanoseconds if present.
198
+// e.g. "2006-01-02 15:04:05.999999999 -0700 MST" or "2006-01-02 15:04:05 -0700 MST"
199
func (c *ContainerContext) CreatedAt() string {
200
return time.Unix(c.c.Created, 0).String()
201
0 commit comments