Documentation
¶
Index ¶
- Constants
- func DateFormat(t time.Time, format string) string
- func DateParse(dateStr string, format string) (time.Time, error)
- type Date
- func (t *Date) CompareTimes(time time.Time) int
- func (t *Date) OffsetDay(offset int) *Date
- func (t *Date) OffsetHour(offset int) *Date
- func (t *Date) OffsetMinute(offset int) *Date
- func (t *Date) OffsetMonth(offset int) *Date
- func (t *Date) OffsetSecond(offset int) *Date
- func (t *Date) OffsetYear(offset int) *Date
- func (t *Date) ToString(format string) string
- type Iterator
- type KeyValue
- type List
- type Map
Constants ¶
View Source
const ( FormatDate = "yyyy-MM-dd" FormatTime = "HH:mm:ss" FormatDatetime = FormatDate + " " + FormatTime )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Date ¶
type Date struct {
// contains filtered or unexported fields
}
func DateStr ¶
DateStr time: 时间 eg: 2024-14-12 12:15:20 format: 时间格式 eg: yyyy-MM-dd HH:mm:ss OR FormatDatetime
func (*Date) OffsetMinute ¶
OffsetMinute 函数增加或减少指定的分钟数
type KeyValue ¶
type KeyValue[K comparable, V any] struct { Key K Value V }
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
func MapNew ¶
func MapNew[K comparable, V any]() *Map[K, V]
func (*Map[K, V]) ContainKey ¶
Click to show internal directories.
Click to hide internal directories.