Documentation ¶
Index ¶
- Constants
- func ClickhouseTime(now time.Time) string
- func CompactTime(now time.Time) string
- func DateExcelStr(now time.Time) string
- func DateStr(now time.Time) string
- func FullIsoNanoTime(now time.Time) string
- func FullIsoTime(now time.Time) string
- func IsoNoSecondTime(now time.Time) string
- func IsoTime(now time.Time) string
- func Localify(now time.Time) time.Time
- func MonthStr(now time.Time) string
- func MysqlTime(now time.Time) string
- func ParseClickhouseTime(str string) (time.Time, error)
- func ParseCompactTime(str string) (time.Time, error)
- func ParseDate(str string) (time.Time, error)
- func ParseDateExcel(str string) (time.Time, error)
- func ParseFullIsoTime(str string) (time.Time, error)
- func ParseFullIsoTime2(str string) (time.Time, error)
- func ParseFullIsoTime3(str string) (time.Time, error)
- func ParseFullNormalTime(str string) (time.Time, error)
- func ParseIsoNoSecondTime(str string) (time.Time, error)
- func ParseIsoNoSecondTime2(str string) (time.Time, error)
- func ParseIsoTime(str string) (time.Time, error)
- func ParseIsoTime2(str string) (time.Time, error)
- func ParseMysqlTime(str string) (time.Time, error)
- func ParseNormalTime(str string) (time.Time, error)
- func ParseRFC2882Time(str string) (time.Time, error)
- func ParseShortDate(str string) (time.Time, error)
- func ParseTimeStr(str string) (time.Time, error)
- func ParseTimeStrInLocation(str string, loc *time.Location) (time.Time, error)
- func ParseTimeStrInTimeZone(str string, tz string) (time.Time, error)
- func ParseZStackDate(str string) (time.Time, error)
- func RFC2882Time(now time.Time) string
- func ShortDate(now time.Time) string
- func ShortMonth(now time.Time) string
- func TimeZoneOffset(tz string) (int, error)
- func UtcNow() time.Time
- func Utcify(now time.Time) time.Time
- func ZStackTime(now time.Time) string
Constants ¶
View Source
const ( IsoTimeFormat = "2006-01-02T15:04:05Z07:00" IsoNoSecondTimeFormat = "2006-01-02T15:04Z07:00" FullIsoTimeFormat = "2006-01-02T15:04:05.000000Z07:00" FullIsoNanoTimeFormat = "2006-01-02T15:04:05.000000000Z07:00" MysqlTimeFormat = "2006-01-02 15:04:05" ClickhouseTimeFormat = "2006-01-02 15:04:05 +0000 UTC" NormalTimeFormat = "2006-01-02T15:04:05" FullNormalTimeFormat = "2006-01-02T15:04:05.000000" CompactTimeFormat = "20060102150405" DateFormat = "2006-01-02" ShortDateFormat = "20060102" DateExcelFormat = "01-02-06" MonthFormat = "2006-01" ShortMonthFormat = "200601" ZStackTimeFormat = "Jan 2, 2006 15:04:05 PM" IsoTimeFormat2 = "2006-01-02 15:04:05Z07:00" IsoNoSecondTimeFormat2 = "2006-01-02 15:04Z07:00" FullIsoNanoTimeFormat2 = "2006-01-02 15:04:05.000000000Z07:00" FullIsoNanoTimeFormat3 = "2006-01-02 15:04:05.000000000" RFC2882Format = time.RFC1123 )
Variables ¶
This section is empty.
Functions ¶
func ClickhouseTime ¶
func CompactTime ¶
func DateExcelStr ¶
func FullIsoNanoTime ¶
func FullIsoTime ¶
func IsoNoSecondTime ¶
func ParseTimeStrInLocation ¶
func RFC2882Time ¶
func ShortMonth ¶
func TimeZoneOffset ¶
func ZStackTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.