Skip to content

Commit

Permalink
rename AnsicFormat to ANSICFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Apr 14, 2022
1 parent fe8d8af commit d75deb8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions carbon.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @Package carbon
// @Description a simple, semantic and developer-friendly golang package for datetime
// @Page github.com/golang-module/carbon
// @Version v1.6.0
// @Version v1.6.1
// @Author gouguoyin
// @Blog www.gouguoyin.cn
// @Email contact@gouguoyin.cn
Expand Down Expand Up @@ -97,7 +97,7 @@ const (
YearsPerMillennium = 1000 // 每千年1000年
YearsPerCentury = 100 // 每世纪100年
YearsPerDecade = 10 // 每十年10年
QuartersPerYear = 4 // 每年4季度
QuartersPerYear = 4 // 每年4个季度
MonthsPerYear = 12 // 每年12月
MonthsPerQuarter = 3 // 每季度3月
WeeksPerNormalYear = 52 // 每常规年52周
Expand All @@ -119,7 +119,7 @@ const (
// formats constant
// 时间格式化常量
const (
AnsicFormat = time.ANSIC
ANSICFormat = time.ANSIC
UnixDateFormat = time.UnixDate
RubyDateFormat = time.RubyDate
RFC822Format = time.RFC822
Expand All @@ -136,6 +136,9 @@ const (
RFC3339MicroFormat = "2006-01-02T15:04:05.999999Z07:00"
RFC3339NanoFormat = "2006-01-02T15:04:05.999999999Z07:00"
ISO8601Format = "2006-01-02T15:04:05-07:00"
ISO8601MilliFormat = "2006-01-02T15:04:05.999-07:00"
ISO8601MicroFormat = "2006-01-02T15:04:05.999999-07:00"
ISO8601NanoFormat = "2006-01-02T15:04:05.999999999-07:00"
RFC1036Format = "Mon, 02 Jan 06 15:04:05 -0700"
RFC7231Format = "Mon, 02 Jan 2006 15:04:05 GMT"
DayDateTimeFormat = "Mon, Jan 2, 2006 3:04 PM"
Expand Down

0 comments on commit d75deb8

Please sign in to comment.