<p>I'm struggling with finding a way to include the <a href="https://docs.helm.sh/chart_template_guide/#built-in-objects" rel="noreferrer">Release.Time</a> builtin as part of a helm name. </p>

<p>If I just include it as:
<code>name: {{ template "myapp.name" . }}-{{ .Release.Time }}</code></p>

<p>Dry run shows this:
<code>name: myapp-seconds:1534946206 nanos:143228281
</code></p>

<p>It seems like this is a *timestamp.Timestamp object or something because <code>{{ .Release.Time | trimPrefix "seconds:" | trunc 10 }}</code> outputs <code>wrong type for value; expected string; got *timestamp.Timestamp
</code></p>

<p>I can hack the string parsing by doing: <code>{{ .Release.Time | toString | trimPrefix "seconds:" | trunc 10 }}</code>, but it seems like I should be able to call something on the Timestamp object to get the seconds. Is anyone aware of where the docs are for this? I can't find any reference to it at <a href="https://godoc.org/github.com/Masterminds/sprig" rel="noreferrer">https://godoc.org/github.com/Masterminds/sprig</a>.</p>

Adverbly
<p>To format timestamp, you can use <code>date FORMAT TIME</code> from Sprig doc. And because <code>.Release.Time</code> got removed in Helm 3, you have to use <code>now</code> instead:</p>
<pre><code>{{ now | date &quot;20060102150405&quot; }}
</code></pre>
<p>Refer the format options: <a href="https://golang.org/pkg/time/#Time.Format" rel="noreferrer">https://golang.org/pkg/time/#Time.Format</a></p>
<p>But having timestamp in the name is not good idea because of upgrades.</p>
