MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / String

Method String

pkg/util/duration/duration.go:656–660  ·  view source on GitHub ↗

String returns a string representation of a Duration.

()

Source from the content-addressed store, hash-verified

654
655// String returns a string representation of a Duration.
656func (d Duration) String() string {
657 var buf bytes.Buffer
658 d.Format(&buf)
659 return buf.String()
660}
661
662// ISO8601String returns an ISO 8601 representation ('P1Y2M3DT4H') of a Duration.
663func (d Duration) ISO8601String() string {

Callers 1

prettyPrintFirstValueFunction · 0.95

Calls 2

FormatMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected