const minimumTick … const second … const nanosPerTick … const Earliest … const Latest … type Time … type Interval … // Now returns the current time as a Time. func Now() Time { … } // TimeFromUnix returns the Time equivalent to the Unix Time t // provided in seconds. func TimeFromUnix(t int64) Time { … } // TimeFromUnixNano returns the Time equivalent to the Unix Time // t provided in nanoseconds. func TimeFromUnixNano(t int64) Time { … } // Equal reports whether two Times represent the same instant. func (t Time) Equal(o Time) bool { … } // Before reports whether the Time t is before o. func (t Time) Before(o Time) bool { … } // After reports whether the Time t is after o. func (t Time) After(o Time) bool { … } // Add returns the Time t + d. func (t Time) Add(d time.Duration) Time { … } // Sub returns the Duration t - o. func (t Time) Sub(o Time) time.Duration { … } // Time returns the time.Time representation of t. func (t Time) Time() time.Time { … } // Unix returns t as a Unix time, the number of seconds elapsed // since January 1, 1970 UTC. func (t Time) Unix() int64 { … } // UnixNano returns t as a Unix time, the number of nanoseconds elapsed // since January 1, 1970 UTC. func (t Time) UnixNano() int64 { … } var dotPrecision … // String returns a string representation of the Time. func (t Time) String() string { … } // MarshalJSON implements the json.Marshaler interface. func (t Time) MarshalJSON() ([]byte, error) { … } // UnmarshalJSON implements the json.Unmarshaler interface. func (t *Time) UnmarshalJSON(b []byte) error { … } type Duration … // Set implements pflag/flag.Value func (d *Duration) Set(s string) error { … } // Type implements pflag.Value func (d *Duration) Type() string { … } func isdigit(c byte) bool { … } var unitMap … // ParseDuration parses a string into a time.Duration, assuming that a year // always has 365d, a week always has 7d, and a day always has 24h. func ParseDuration(s string) (Duration, error) { … } func (d Duration) String() string { … } // MarshalJSON implements the json.Marshaler interface. func (d Duration) MarshalJSON() ([]byte, error) { … } // UnmarshalJSON implements the json.Unmarshaler interface. func (d *Duration) UnmarshalJSON(bytes []byte) error { … } // MarshalText implements the encoding.TextMarshaler interface. func (d *Duration) MarshalText() ([]byte, error) { … } // UnmarshalText implements the encoding.TextUnmarshaler interface. func (d *Duration) UnmarshalText(text []byte) error { … } // MarshalYAML implements the yaml.Marshaler interface. func (d Duration) MarshalYAML() (interface{ … } // UnmarshalYAML implements the yaml.Unmarshaler interface. func (d *Duration) UnmarshalYAML(unmarshal func(interface{ … }