Versions in this module Expand all Collapse all v0 v0.1.1 Mar 1, 2021 v0.1.0 Mar 1, 2021 Changes in this version + const D + const H + const M + const MS + const NS + const S + 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 ParseDuration(s string) (time.Duration, error) + func RFC822() string + func Second() int64 + func SetTimeZone(zone string) error + func Timestamp() int64 + func TimestampMicro() int64 + func TimestampMicroStr() string + func TimestampMilli() int64 + func TimestampMilliStr() string + func TimestampNano() int64 + func TimestampNanoStr() string + func TimestampStr() string + type Time struct + func ConvertZone(strTime string, toZone string, fromZone ...string) (*Time, error) + func New(param ...interface{}) *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) (*Time, error) + func (t *Time) After(u *Time) bool + func (t *Time) Before(u *Time) bool + func (t *Time) Clone() *Time + func (t *Time) DayOfYear() int + func (t *Time) DaysInMonth() int + func (t *Time) EndOfDay() *Time + func (t *Time) EndOfHalf() *Time + func (t *Time) EndOfHour() *Time + func (t *Time) EndOfMinute() *Time + func (t *Time) EndOfMonth() *Time + func (t *Time) EndOfQuarter() *Time + func (t *Time) EndOfWeek() *Time + func (t *Time) EndOfYear() *Time + func (t *Time) Equal(u *Time) bool + func (t *Time) Format(format string) string + func (t *Time) FormatNew(format string) *Time + 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) LayoutNew(layout string) *Time + func (t *Time) LayoutTo(layout string) *Time + func (t *Time) Local() *Time + func (t *Time) MarshalJSON() ([]byte, error) + func (t *Time) Microsecond() int + func (t *Time) Millisecond() int + func (t *Time) Month() int + func (t *Time) Nanosecond() int + func (t *Time) RFC822() string + func (t *Time) Round(d time.Duration) *Time + func (t *Time) Second() int + func (t *Time) StartOfDay() *Time + func (t *Time) StartOfHalf() *Time + func (t *Time) StartOfHour() *Time + func (t *Time) StartOfMinute() *Time + func (t *Time) StartOfMonth() *Time + func (t *Time) StartOfQuarter() *Time + func (t *Time) StartOfWeek() *Time + func (t *Time) StartOfYear() *Time + func (t *Time) String() string + func (t *Time) Sub(u *Time) time.Duration + func (t *Time) Timestamp() int64 + func (t *Time) TimestampMicro() int64 + func (t *Time) TimestampMicroStr() string + func (t *Time) TimestampMilli() int64 + func (t *Time) TimestampMilliStr() string + func (t *Time) TimestampNano() int64 + func (t *Time) TimestampNanoStr() string + func (t *Time) TimestampStr() 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) UnmarshalJSON(b []byte) error + func (t *Time) UnmarshalText(data []byte) error + func (t *Time) WeeksOfYear() int