Documentation ¶
Index ¶
- Constants
- func CopyPoint[T any](m T) T
- func Duration(s, e int64) string
- func Duration2(start, end int64) string
- func DurationSecondsOfMonth(s int64) (int64, int64)
- func FirstSecond(t time.Time) int64
- func FirstSecond2(s int64) int64
- func FormatDate(ts int64) string
- func FormatTime(ts int64) string
- func GetFirstDateOfMonth(d time.Time) time.Time
- func GetLastDateOfMonth(d time.Time) time.Time
- func GetZeroTime(d time.Time) time.Time
- func JSONArgs(r io.Reader, v schema.ISchema) error
- func NonceStr() string
- func SafePage[T Integer](i T) T
- func Str2Time(str string) time.Time
- func StrToTime(str string) int64
- func TodayFirstSecond() int64
- type Complex
- type FieldType
- type Float
- type Integer
- type Ordered
- type Signed
- type Unsigned
Constants ¶
View Source
const OneDaySec = int64(86400)
Variables ¶
This section is empty.
Functions ¶
func DurationSecondsOfMonth ¶
func FirstSecond ¶
func FirstSecond2 ¶
func FormatDate ¶
func FormatTime ¶
func GetFirstDateOfMonth ¶
GetFirstDateOfMonth 获取传入的时间所在月份的第一天,即某月第一天的0点。如传入time.Now(), 返回当前月份的第一天0点时间。
func GetLastDateOfMonth ¶
GetLastDateOfMonth 获取传入的时间所在月份的最后一天,即某月最后一天的23:59:59。如传入time.Now(), 返回当前月份的最后一天0点时间。
func TodayFirstSecond ¶
func TodayFirstSecond() int64
Types ¶
type Complex ¶
type Complex interface { ~complex64 | ~complex128 }
Click to show internal directories.
Click to hide internal directories.