Versions in this module Expand all Collapse all v1 v1.0.1 May 31, 2021 v1.0.0 May 31, 2021 Changes in this version + const D + const H + const M + const MS + const NS + const S + const TIME_REAGEX_PATTERN1 + const TIME_REAGEX_PATTERN2 + const US + func Date() string + func Datetime() string + func FuncCost(f func()) int64 + func ISO8601() string + func Microsecond() int64 + func Millisecond() int64 + func Nanosecond() int64 + func RFC822() string + func Second() int64 + func SetTimeZone(zone string) error + type Time struct + func ConvertZone(strTime string, toZone string, fromZone ...string) (*Time, error) + func New(t ...time.Time) *Time + func NewFromStr(str string) *Time + func NewFromStrFormat(str string, format string) *Time + func NewFromStrLayout(str string, layout string) *Time + func NewFromTime(t time.Time) *Time + func NewFromTimeStamp(timestamp int64) *Time + func Now() *Time + func ParseTimeFromContent(content string, format ...string) *Time + func StrToTime(str string, format ...string) (*Time, error) + func StrToTimeFormat(str string, format string) (*Time, error) + func StrToTimeLayout(str string, layout string) (*Time, error) + func (t *Time) Add(d time.Duration) *Time + func (t *Time) AddDate(years int, months int, days int) *Time + func (t *Time) AddStr(duration string) error + func (t *Time) Clone() *Time + func (t *Time) DayOfYear() int + func (t *Time) DaysInMonth() int + func (t *Time) Format(format string) string + func (t *Time) FormatTo(format string) *Time + func (t *Time) ISO8601() string + func (t *Time) IsLeapYear() bool + func (t *Time) Layout(layout string) string + func (t *Time) LayoutTo(layout string) *Time + func (t *Time) Local() *Time + func (t *Time) MarshalJSON() ([]byte, error) + func (t *Time) Microsecond() int64 + func (t *Time) Millisecond() int64 + func (t *Time) Nanosecond() int64 + func (t *Time) RFC822() string + func (t *Time) Round(d time.Duration) *Time + func (t *Time) Second() int64 + func (t *Time) String() string + func (t *Time) ToLocation(location *time.Location) *Time + func (t *Time) ToZone(zone string) (*Time, error) + func (t *Time) Truncate(d time.Duration) *Time + func (t *Time) UTC() *Time + func (t *Time) WeeksOfYear() int