time.Now
Syntax
time.Now ⟼ time.Time
Alias
now
See time.Time
.
For example, building your site on June 24, 2017, with the following templating:
<div>
<small>© {{ now.Format "2006" }}</small>
</div>
would produce the following:
<div>
<small>© 2017</small>
</div>
The above example uses the .Format
function, which page includes a full listing of date formatting using Go’s layout string.