From 0b9d58245a01b66a7a8822e6699e48b6377e5bfc Mon Sep 17 00:00:00 2001 From: lentil32 Date: Sun, 8 Sep 2024 15:28:28 +0900 Subject: [PATCH] cli/command: fix docstring for ContainerFormat.CreatedAt Signed-off-by: lentil32 --- cli/command/formatter/container.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/command/formatter/container.go b/cli/command/formatter/container.go index 203e437c69..f357d2aac8 100644 --- a/cli/command/formatter/container.go +++ b/cli/command/formatter/container.go @@ -193,7 +193,9 @@ func (c *ContainerContext) Command() string { return strconv.Quote(command) } -// 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. +// The format may include nanoseconds if present. +// e.g. "2006-01-02 15:04:05.999999999 -0700 MST" or "2006-01-02 15:04:05 -0700 MST" func (c *ContainerContext) CreatedAt() string { return time.Unix(c.c.Created, 0).String() }