Time

Second

返回给定 time.Time 值在分钟内的秒偏移,范围为 [0, 59]。

签名
TIME.Second
返回类型
int
go-html-template
{{ $t := time.AsTime "2023-01-27T23:44:58-08:00" }}
{{ $t.Second }} → 58