Documentation
¶
Index ¶
- Constants
- func AddDays(t time.Time, days int) time.Time
- func AddMonths(t time.Time, months int) time.Time
- func AddWeeks(t time.Time, weeks int) time.Time
- func AddYears(t time.Time, years int) time.Time
- func Day(t time.Time) int
- func Days(n int64) time.Duration
- func Format(t time.Time, format string) string
- func FromUnix(sec int64) time.Time
- func FromUnixMilli(msec int64) time.Time
- func Hour(t time.Time) int
- func Hours(n int64) time.Duration
- func InLocal(t time.Time) time.Time
- func InLocation(t time.Time, location string) (time.Time, error)
- func InUTC(t time.Time) time.Time
- func IsAfter(t1 time.Time, t2 time.Time) bool
- func IsBefore(t1 time.Time, t2 time.Time) bool
- func IsBetween(t time.Time, start time.Time, end time.Time) bool
- func IsFuture(t time.Time) bool
- func IsPast(t time.Time) bool
- func IsSameDay(t1 time.Time, t2 time.Time) bool
- func IsToday(t time.Time) bool
- func IsTomorrow(t time.Time) bool
- func IsYesterday(t time.Time) bool
- func Microseconds(n int64) time.Duration
- func Milliseconds(n int64) time.Duration
- func Minute(t time.Time) int
- func Minutes(n int64) time.Duration
- func Month(t time.Time) int
- func Nanoseconds(n int64) time.Duration
- func Now() time.Time
- func Parse(value string, format string) (time.Time, error)
- func ParseInLocation(value string, format string, location string) (time.Time, error)
- func Second(t time.Time) int
- func Seconds(n int64) time.Duration
- func Sleep(d time.Duration)
- func SleepMilliseconds(n int64)
- func SleepSeconds(n int64)
- func SubDays(t time.Time, days int) time.Time
- func SubMonths(t time.Time, months int) time.Time
- func SubWeeks(t time.Time, weeks int) time.Time
- func SubYears(t time.Time, years int) time.Time
- func Today() time.Time
- func Tomorrow() time.Time
- func Unix(t time.Time) int64
- func UnixMilli(t time.Time) int64
- func Weekday(t time.Time) int
- func WeekdayName(t time.Time) string
- func Weeks(n int64) time.Duration
- func Year(t time.Time) int
- func Yesterday() time.Time
Constants ¶
View Source
const ANSIC = "ansic"
View Source
const Date = "date"
View Source
const DateTime = "datetime"
View Source
const DateTimeT = "dateTimeT"
View Source
const ISO8601 = "iso8601"
View Source
const Kitchen = "kitchen"
View Source
const RFC1123 = "rfc1123"
View Source
const RFC3339 = "rfc3339"
View Source
const RFC3339Nano = "rfc3339nano"
View Source
const RFC822 = "rfc822"
View Source
const Stamp = "stamp"
View Source
const Time = "time"
View Source
const UnixDate = "unixdate"
Variables ¶
This section is empty.
Functions ¶
func FromUnixMilli ¶
func IsTomorrow ¶
func IsYesterday ¶
func Microseconds ¶
func Milliseconds ¶
func Nanoseconds ¶
func ParseInLocation ¶
func SleepMilliseconds ¶
func SleepMilliseconds(n int64)
func SleepSeconds ¶
func SleepSeconds(n int64)
func WeekdayName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.