Versions in this module Expand all Collapse all v1 v1.2.3 Nov 1, 2020 Changes in this version + const AnsicFormat + const April + const August + const Author + const Blog + const CET + const Chongqing + const CookieFormat + const Cuba + const DateFormat + const DateTimeFormat + const DayDateTimeFormat + const DaysPerLeapYear + const DaysPerNormalYear + const DaysPerWeek + const December + const EET + const EST + const Egypt + const Eire + const Email + const February + const Friday + const GMT + const Greenwich + const HongKong + const HoursPerDay + const HoursPerWeek + const Iceland + const Iran + const Israel + const Jamaica + const January + const Japan + const July + const June + const KitchenFormat + const Libya + const Local + const London + const LosAngeles + const MST + const Macao + const March + const May + const MicrosecondsPerMillisecond + const MicrosecondsPerSecond + const MillisecondsPerSecond + const MinutesPerDay + const MinutesPerHour + const Monday + const MonthsPerQuarter + const MonthsPerYear + const NewYork + const November + const October + const PRC + const Poland + const Portugal + const QuartersPerYear + const RFC1036Format + const RFC1123Format + const RFC1123ZFormat + const RFC2822Format + const RFC3339Format + const RFC7231Format + const RFC822Format + const RFC822ZFormat + const RFC850Format + const RssFormat + const RubyDateFormat + const Saturday + const SecondsPerDay + const SecondsPerHour + const SecondsPerMinute + const SecondsPerWeek + const September + const Shanghai + const ShortDateFormat + const ShortDateTimeFormat + const ShortTimeFormat + const Singapore + const Sunday + const Taipei + const Thursday + const TimeFormat + const Tokyo + const Tuesday + const Turkey + const UCT + const UTC + const UnixDateFormat + const Version + const Wednesday + const WeeksPerMonth + const WeeksPerNormalYear + const YearsPerCentury + const YearsPerDecade + const YearsPerMillennium + const Zulu + var EarthlyBranches = [12]string + var HeavenlyStems = [10]string + var SymbolicAnimals = [12]string + type Carbon struct + Time time.Time + func CreateFromDate(year int, month int, day int) Carbon + func CreateFromDateTime(year int, month int, day int, hour int, minute int, second int) Carbon + func CreateFromGoTime(t time.Time) Carbon + func CreateFromTime(hour int, minute int, second int) Carbon + func CreateFromTimestamp(timestamp int64) Carbon + func Now() Carbon + func Parse(value string) Carbon + func ParseByDuration(duration string) Carbon + func ParseByFormat(value string, format string) Carbon + func SetTimezone(name string) Carbon + func Tomorrow() Carbon + func Yesterday() Carbon + func (c *Carbon) Scan(v interface{}) error + func (c Carbon) AddDay() Carbon + func (c Carbon) AddDays(days int) Carbon + func (c Carbon) AddHour() Carbon + func (c Carbon) AddHours(hours int) Carbon + func (c Carbon) AddMinute() Carbon + func (c Carbon) AddMinutes(minutes int) Carbon + func (c Carbon) AddMonth() Carbon + func (c Carbon) AddMonths(months int) Carbon + func (c Carbon) AddSecond() Carbon + func (c Carbon) AddSeconds(seconds int) Carbon + func (c Carbon) AddYear() Carbon + func (c Carbon) AddYears(years int) Carbon + func (c Carbon) Age() int + func (c Carbon) CreateFromDate(year int, month int, day int) Carbon + func (c Carbon) CreateFromDateTime(year int, month int, day int, hour int, minute int, second int) Carbon + func (c Carbon) CreateFromGoTime(t time.Time) Carbon + func (c Carbon) CreateFromTime(hour int, minute int, second int) Carbon + func (c Carbon) CreateFromTimestamp(timestamp int64) Carbon + func (c Carbon) Day() int + func (c Carbon) DayOfMonth() int + func (c Carbon) DayOfWeek() int + func (c Carbon) DayOfYear() int + func (c Carbon) DaysInMonth() int + func (c Carbon) DaysInYear() int + func (c Carbon) Duration(duration string) Carbon + func (c Carbon) EndOfDay() Carbon + func (c Carbon) EndOfHour() Carbon + func (c Carbon) EndOfMinute() Carbon + func (c Carbon) EndOfMonth() Carbon + func (c Carbon) EndOfWeek() Carbon + func (c Carbon) EndOfYear() Carbon + func (c Carbon) Format(format string) string + func (c Carbon) Hour() int + func (c Carbon) IsApril() bool + func (c Carbon) IsAugust() bool + func (c Carbon) IsDecember() bool + func (c Carbon) IsFebruary() bool + func (c Carbon) IsFriday() bool + func (c Carbon) IsFuture() bool + func (c Carbon) IsJanuary() bool + func (c Carbon) IsJuly() bool + func (c Carbon) IsJune() bool + func (c Carbon) IsLeapYear() bool + func (c Carbon) IsLongYear() bool + func (c Carbon) IsMarch() bool + func (c Carbon) IsMay() bool + func (c Carbon) IsMonday() bool + func (c Carbon) IsNovember() bool + func (c Carbon) IsNow() bool + func (c Carbon) IsOctober() bool + func (c Carbon) IsPast() bool + func (c Carbon) IsSaturday() bool + func (c Carbon) IsSeptember() bool + func (c Carbon) IsSunday() bool + func (c Carbon) IsThursday() bool + func (c Carbon) IsToday() bool + func (c Carbon) IsTomorrow() bool + func (c Carbon) IsTuesday() bool + func (c Carbon) IsWednesday() bool + func (c Carbon) IsWeekday() bool + func (c Carbon) IsWeekend() bool + func (c Carbon) IsYearOfDog() bool + func (c Carbon) IsYearOfDragon() bool + func (c Carbon) IsYearOfGoat() bool + func (c Carbon) IsYearOfHorse() bool + func (c Carbon) IsYearOfMonkey() bool + func (c Carbon) IsYearOfOx() bool + func (c Carbon) IsYearOfPig() bool + func (c Carbon) IsYearOfRabbit() bool + func (c Carbon) IsYearOfRat() bool + func (c Carbon) IsYearOfRooster() bool + func (c Carbon) IsYearOfSnake() bool + func (c Carbon) IsYearOfTiger() bool + func (c Carbon) IsYesterday() bool + func (c Carbon) IsZero() bool + func (c Carbon) MarshalJSON() ([]byte, error) + func (c Carbon) Minute() int + func (c Carbon) Month() int + func (c Carbon) MonthOfYear() int + func (c Carbon) NextMonth() Carbon + func (c Carbon) NextMonths(months int) Carbon + func (c Carbon) NextYear() Carbon + func (c Carbon) NextYears(years int) Carbon + func (c Carbon) Now() Carbon + func (c Carbon) Parse(value string) Carbon + func (c Carbon) ParseByDuration(duration string) Carbon + func (c Carbon) ParseByFormat(value string, format string) Carbon + func (c Carbon) PreMonth() Carbon + func (c Carbon) PreMonths(months int) Carbon + func (c Carbon) PreYear() Carbon + func (c Carbon) PreYears(years int) Carbon + func (c Carbon) Second() int + func (c Carbon) SetDay(day int) Carbon + func (c Carbon) SetHour(hour int) Carbon + func (c Carbon) SetMinute(minute int) Carbon + func (c Carbon) SetMonth(month int) Carbon + func (c Carbon) SetSecond(second int) Carbon + func (c Carbon) SetTimezone(name string) Carbon + func (c Carbon) SetYear(year int) Carbon + func (c Carbon) StartOfDay() Carbon + func (c Carbon) StartOfHour() Carbon + func (c Carbon) StartOfMinute() Carbon + func (c Carbon) StartOfMonth() Carbon + func (c Carbon) StartOfWeek() Carbon + func (c Carbon) StartOfYear() Carbon + func (c Carbon) SubDay() Carbon + func (c Carbon) SubDays(days int) Carbon + func (c Carbon) SubHour() Carbon + func (c Carbon) SubHours(hours int) Carbon + func (c Carbon) SubMinute() Carbon + func (c Carbon) SubMinutes(minutes int) Carbon + func (c Carbon) SubMonth() Carbon + func (c Carbon) SubMonths(months int) Carbon + func (c Carbon) SubSecond() Carbon + func (c Carbon) SubSeconds(seconds int) Carbon + func (c Carbon) SubYear() Carbon + func (c Carbon) SubYears(years int) Carbon + func (c Carbon) Timezone() string + func (c Carbon) ToAnimalYear() string + func (c Carbon) ToAnsicString() string + func (c Carbon) ToAtomString() string + func (c Carbon) ToCookieString() string + func (c Carbon) ToDateString() string + func (c Carbon) ToDateTimeString() string + func (c Carbon) ToDayDateTimeString() string + func (c Carbon) ToFormatString(format string) string + func (c Carbon) ToKitchenString() string + func (c Carbon) ToLunarYear() string + func (c Carbon) ToRFC1036String() string + func (c Carbon) ToRFC1123String() string + func (c Carbon) ToRFC1123ZString() string + func (c Carbon) ToRFC2822String() string + func (c Carbon) ToRFC3339String() string + func (c Carbon) ToRFC7231String() string + func (c Carbon) ToRFC822String() string + func (c Carbon) ToRFC822zString() string + func (c Carbon) ToRFC850String() string + func (c Carbon) ToRssString() string + func (c Carbon) ToRubyDateString() string + func (c Carbon) ToString() string + func (c Carbon) ToTimeString() string + func (c Carbon) ToTimestamp() int64 + func (c Carbon) ToUnixDateString() string + func (c Carbon) ToW3cString() string + func (c Carbon) Tomorrow() Carbon + func (c Carbon) Value() (driver.Value, error) + func (c Carbon) WeekOfMonth() int + func (c Carbon) WeekOfYear() int + func (c Carbon) Year() int + func (c Carbon) Yesterday() Carbon + func (start Carbon) DiffAbsInDays(end Carbon) int64 + func (start Carbon) DiffAbsInHours(end Carbon) int64 + func (start Carbon) DiffAbsInMinutes(end Carbon) int64 + func (start Carbon) DiffAbsInSeconds(end Carbon) int64 + func (start Carbon) DiffAbsInWeeks(end Carbon) int64 + func (start Carbon) DiffInDays(end Carbon) int64 + func (start Carbon) DiffInHours(end Carbon) int64 + func (start Carbon) DiffInMinutes(end Carbon) int64 + func (start Carbon) DiffInSeconds(end Carbon) int64 + func (start Carbon) DiffInWeeks(end Carbon) int64 + type ToDateString struct + func (c ToDateString) MarshalJSON() ([]byte, error) + type ToDateTimeString struct + func (c ToDateTimeString) MarshalJSON() ([]byte, error) + type ToTimeString struct + func (c ToTimeString) MarshalJSON() ([]byte, error) + type ToTimestamp struct + func (c ToTimestamp) MarshalJSON() ([]byte, error)