Skip to content

Commit 6372ec9

Browse files
authored
Merge pull request #5415 from lentil32/master
fix: docstring for cli/command: `ContainerFormat.CreatedAt`
2 parents 21ee268 + 0b9d582 commit 6372ec9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cli/command/formatter/container.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,9 @@ func (c *ContainerContext) Command() string {
193193
return strconv.Quote(command)
194194
}
195195

196-
// CreatedAt returns the "Created" date/time of the container as a unix timestamp.
196+
// 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"
197199
func (c *ContainerContext) CreatedAt() string {
198200
return time.Unix(c.c.Created, 0).String()
199201
}

0 commit comments

Comments
 (0)