Documentation ¶
Index ¶
- Constants
- type Carbon
- func (c *Carbon) AddDay() *Carbon
- func (c *Carbon) AddDays(days int) *Carbon
- func (c *Carbon) AddDecade() *Carbon
- func (c *Carbon) AddDecades(decades 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) Between(before, after *Carbon) bool
- func (c *Carbon) Copy() *Carbon
- func (c *Carbon) DayName() string
- func (c *Carbon) DayNumber() int
- func (c *Carbon) DaysInMonth() int
- func (c *Carbon) DaysInYear() int
- func (c *Carbon) DaysLeftInMonth() int
- func (c *Carbon) DaysLeftInWeek() int
- func (c *Carbon) DaysLeftInWorkWeek() int
- func (c *Carbon) DaysLeftInYear() int
- func (c *Carbon) DaysToAutumn() int
- func (c *Carbon) DaysToChristmas() int
- func (c *Carbon) DaysToHours(days int) int
- func (c *Carbon) DaysToSpring() int
- func (c *Carbon) DaysToSummer() int
- func (c *Carbon) DaysToWinter() int
- func (c *Carbon) DiffInDays(from *Carbon) int
- func (c *Carbon) DiffInHours(from *Carbon) int
- func (c *Carbon) DiffInHuman(from *Carbon) string
- func (c *Carbon) DiffInHumanShort(from *Carbon) string
- func (c *Carbon) DiffInMinutes(from *Carbon) int
- func (c *Carbon) DiffInMonths(from *Carbon) int
- func (c *Carbon) DiffInSeconds(from *Carbon) int
- func (c *Carbon) DiffInYears(from *Carbon) int
- func (c *Carbon) EndOfDay() *Carbon
- func (c *Carbon) EndOfHour() *Carbon
- func (c *Carbon) EndOfMonth() *Carbon
- func (c *Carbon) EndOfQuarter() *Carbon
- func (c *Carbon) EndOfWeek() *Carbon
- func (c *Carbon) EndOfYear() *Carbon
- func (c *Carbon) Eq(another *Carbon) bool
- func (c *Carbon) FormatIt(format int) string
- func (c *Carbon) Gt(another *Carbon) bool
- func (c *Carbon) In(location string) *Carbon
- func (c *Carbon) IsAutumn() bool
- func (c *Carbon) IsDay(day time.Weekday) bool
- func (c *Carbon) IsFriday() bool
- func (c *Carbon) IsFuture(t2 *Carbon) bool
- func (c *Carbon) IsLeapYear() bool
- func (c *Carbon) IsMonday() bool
- func (c *Carbon) IsPast(t2 *Carbon) bool
- func (c *Carbon) IsSaturday() bool
- func (c *Carbon) IsSpring() bool
- func (c *Carbon) IsSummer() bool
- func (c *Carbon) IsSunday() bool
- func (c *Carbon) IsThursday() bool
- func (c *Carbon) IsTuesday() bool
- func (c *Carbon) IsWednesday() bool
- func (c *Carbon) IsWeekday() bool
- func (c *Carbon) IsWeekend() bool
- func (c *Carbon) IsWinter() bool
- func (c *Carbon) Lt(another *Carbon) bool
- func (c *Carbon) MonthName() string
- func (c *Carbon) MonthNumber() int
- func (c *Carbon) NextDay(day time.Weekday) *Carbon
- func (c *Carbon) NextLeapYear() int
- func (c *Carbon) NextMonth() *Carbon
- func (c *Carbon) Ordinal() string
- func (c *Carbon) OrdinalOnly() string
- func (c *Carbon) PreviousDay(day time.Weekday) *Carbon
- func (c *Carbon) PreviousMonth() *Carbon
- func (c *Carbon) PreviousMonthLastDay() *Carbon
- func (c *Carbon) PreviousMonthStartDay() *Carbon
- func (c *Carbon) Quarter(FYStartMonth ...time.Month) int
- func (c *Carbon) Season() string
- 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 time.Month) *Carbon
- func (c *Carbon) SetSecond(second int) *Carbon
- func (c *Carbon) SetTZ(tz string) *Carbon
- func (c *Carbon) SetTime(hours, minutes, seconds int) *Carbon
- func (c *Carbon) SetYear(year int) *Carbon
- func (c *Carbon) StartOfDay() *Carbon
- func (c *Carbon) StartOfHour() *Carbon
- func (c *Carbon) StartOfMonth() *Carbon
- func (c *Carbon) StartOfQuarter() *Carbon
- func (c *Carbon) StartOfWeek(firstDayOfWeekIsMonday ...bool) *Carbon
- func (c *Carbon) StartOfYear() *Carbon
- func (c *Carbon) SubDay() *Carbon
- func (c *Carbon) SubDays(days int) *Carbon
- func (c *Carbon) SubDecade() *Carbon
- func (c *Carbon) SubDecades(decades 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) TaxYear() string
- func (c *Carbon) ToDateTimeString() string
- func (c *Carbon) ToTimeStamp() int64
- func (c *Carbon) Tomorrow() *Carbon
- func (c *Carbon) Week() int
- func (c *Carbon) WeekOfMonth() int
- func (c *Carbon) YearNumber() int
- func (c *Carbon) Yesterday() *Carbon
Constants ¶
View Source
const (
DATE_TIME_LAYOUT = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Carbon ¶
func CreateFromTimestamp ¶
func (*Carbon) AddDecades ¶
func (*Carbon) AddMinutes ¶
func (*Carbon) AddSeconds ¶
func (*Carbon) DaysInMonth ¶
func (*Carbon) DaysInYear ¶
func (*Carbon) DaysLeftInMonth ¶
func (*Carbon) DaysLeftInWeek ¶
func (*Carbon) DaysLeftInWorkWeek ¶
func (*Carbon) DaysLeftInYear ¶
func (*Carbon) DaysToAutumn ¶
func (*Carbon) DaysToChristmas ¶
func (*Carbon) DaysToHours ¶
func (*Carbon) DaysToSpring ¶
func (*Carbon) DaysToSummer ¶
func (*Carbon) DaysToWinter ¶
func (*Carbon) DiffInDays ¶
func (*Carbon) DiffInHours ¶
func (*Carbon) DiffInHuman ¶
func (*Carbon) DiffInHumanShort ¶
func (*Carbon) DiffInMinutes ¶
func (*Carbon) DiffInMonths ¶
func (*Carbon) DiffInSeconds ¶
func (*Carbon) DiffInYears ¶
func (*Carbon) EndOfMonth ¶
func (*Carbon) EndOfQuarter ¶
func (*Carbon) IsLeapYear ¶
func (*Carbon) IsSaturday ¶
func (*Carbon) IsThursday ¶
func (*Carbon) IsWednesday ¶
func (*Carbon) MonthNumber ¶
func (*Carbon) NextLeapYear ¶
func (*Carbon) OrdinalOnly ¶
func (*Carbon) PreviousMonth ¶
func (*Carbon) PreviousMonthLastDay ¶
func (*Carbon) PreviousMonthStartDay ¶
func (*Carbon) StartOfDay ¶
func (*Carbon) StartOfHour ¶
func (*Carbon) StartOfMonth ¶
func (*Carbon) StartOfQuarter ¶
func (*Carbon) StartOfWeek ¶
func (*Carbon) StartOfYear ¶
func (*Carbon) SubDecades ¶
func (*Carbon) SubMinutes ¶
func (*Carbon) SubSeconds ¶
func (*Carbon) ToDateTimeString ¶
func (*Carbon) ToTimeStamp ¶
func (*Carbon) WeekOfMonth ¶
func (*Carbon) YearNumber ¶
Click to show internal directories.
Click to hide internal directories.