Documentation ¶
Index ¶
- Constants
- Variables
- func BeginThisMonth() time.Time
- func BeginThisWeek() time.Time
- func BeginThisYear() time.Time
- func CurrentCompress() string
- func CurrentDeflult() string
- func CurrentHour() time.Time
- func CurrentMinute() time.Time
- func CurrentSecond() time.Time
- func EndThisMonth() time.Time
- func EndThisWeek() time.Time
- func EndThisYear() time.Time
- func Parse(str string) (t time.Time, err error)
- func Today() time.Time
- func TodayEndMoment() time.Time
- type DateTime
Constants ¶
View Source
const ( DefalutFormat = "2006-01-02 15:04:05" CompressFormat = "20060102150405" )
Variables ¶
View Source
var ( /** 设置每周的起始时间 */ WeekStartDay = time.Sunday /** 指定日期和时间的默认转换格式 */ DateTimeFormats = []string{"1/2/2006", "1/2/2006 15:4:5", "2006", "2006-1-2", "2006-01-02 15:04:05", "20060102150405", "15:4:5 Jan 2, 2006 MST"} )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.