Documentation
¶
Index ¶
- Constants
- func Format(t time.Time) string
- func InRange(t time.Time, start, end time.Time) bool
- func MustParse(s string) time.Time
- func Parse(s string) (time.Time, error)
- func Random(max time.Duration) time.Duration
- func SetLocation(name string) error
- func Tick(ctx context.Context, d time.Duration, f func() error) error
- type Duration
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func SetLocation ¶
SetLocation sets the location for the current application.
Types ¶
type Duration ¶ added in v0.2.2
func (Duration) MarshalJSON ¶ added in v0.2.2
func (Duration) MarshalYAML ¶ added in v0.2.2
func (*Duration) UnmarshalJSON ¶ added in v0.2.2
Click to show internal directories.
Click to hide internal directories.