diff --git a/CHANGELOG.md b/CHANGELOG.md index 99feebc32f..07569b88fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Changelog for NeoFS Node - Policer's setting to the SN's application configuration (#2600) - Support of verified domains for the storage nodes (#2280) - `neofs-lens storage status` CLI command (#2550) +- Human-readable output of objects' creation timestamp to `neofs-cli container list-objects` (#2653) ### Fixed - `neofs-cli netmap netinfo` documentation (#2555) diff --git a/cmd/neofs-cli/modules/container/list_objects.go b/cmd/neofs-cli/modules/container/list_objects.go index 030aa743b3..a713f68d03 100644 --- a/cmd/neofs-cli/modules/container/list_objects.go +++ b/cmd/neofs-cli/modules/container/list_objects.go @@ -73,7 +73,15 @@ var listContainerObjectsCmd = &cobra.Command{ if err == nil { attrs := resHead.Header().UserAttributes() for i := range attrs { - cmd.Printf(" %s: %s\n", attrs[i].Key(), attrs[i].Value()) + key := attrs[i].Key() + val := attrs[i].Value() + + if key == object.AttributeTimestamp { + cmd.Printf(" %s: %s (%s)\n", key, val, common.PrettyPrintUnixTime(val)) + continue + } + + cmd.Printf(" %s: %s\n", key, val) } } else { cmd.Printf(" failed to read attributes: %v\n", err)