Documentation
¶
Index ¶
- func Format(t time.Time, layout string) string
- func Now(ctx context.Context) time.Time
- func ResetTime(ctx context.Context)
- func SetBaseTime(ctx context.Context, t time.Time) error
- func SetFixedTime(ctx context.Context, t time.Time) error
- func ToStdLayout(layout string) string
- func UnixMilli(t time.Time) int64
- type FakeTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Format returns a textual representation of the time value formatted according to layout.
func SetBaseTime ¶
SetBaseTime sets the base time.
func SetFixedTime ¶
SetFixedTime sets a fixed time.
func ToStdLayout ¶
ToStdLayout converts "yyyy-MM-dd H:m:s" to "2006-01-02 15:04:05".
Types ¶
Click to show internal directories.
Click to hide internal directories.