Documentation ¶
Index ¶
- func CurTime() string
- func DateAdd(t time.Time, amt int) time.Time
- func DateAddDuration(t time.Time, d time.Duration) time.Time
- func DateAndTimeAsDateTimeFormat(d time.Time, t string) time.Time
- func DateDiff(s, e time.Time) time.Duration
- func DateDiffFormat(a, b time.Time) (year, month, day, hour, min, sec int)
- func DateFormat(t time.Time) string
- func DateSub(t time.Time, amt int) time.Time
- func DateTimeFormat(t time.Time) string
- func Marshal(val interface{}) ([]byte, error)
- func Now() time.Time
- func Pointer[Value any](v Value) *Value
- func TimeFormat(t time.Time) string
- func TimeParse(layout, value string) time.Time
- func TimeParseDuration(t string) time.Duration
- func TimeTtl(t string) int64
- func TimeZone() string
- func Unmarshal(buf []byte, val interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DateAddDuration ¶
DateAddDuration date add duration DateAddDuration(Now(), time.Duration)
func DateAndTimeAsDateTimeFormat ¶
DateAndTimeAsDateTimeFormat date and time as date time format
func DateDiffFormat ¶
DateDiffFormat date diff format
func TimeParseDuration ¶
TimeParseDuration time parse duration ตย. t = "1m15s"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.