Documentation
¶
Index ¶
- func Format(t time.Time, layout string) string
- func MilliSeconds(t time.Time) int64
- 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
- type FakeTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToStdLayout ¶
ToStdLayout 将 yyyy-MM-dd H:m:s 转换为 2006-01-02 15:04:05 yyyy -> 2006 MM -> 01 dd -> 02 H -> 15 m -> 04 s -> 05
Types ¶
Click to show internal directories.
Click to hide internal directories.