HUGO
Menu
GitHub 87548 stars Mastodon

Nanoseconds

將 time.Duration 值作為整數納秒數返回。

Syntax

DURATION.Nanoseconds

Returns

int64
{{ $d = time.ParseDuration "3.5h2.5m1.5s" }}
{{ $d.Nanoseconds }} → 12751500000000

Last updated: January 1, 0001
Improve this page