xcarbon

package
v0.0.0-...-796497b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

type Carbon struct {
	time.Time
}

func Create

func Create(year, month, day int, args ...interface{}) *Carbon

func CreateFromTimestamp

func CreateFromTimestamp(timestamp int64) *Carbon

func Now

func Now() *Carbon

func (*Carbon) AddDay

func (c *Carbon) AddDay() *Carbon

func (*Carbon) AddDays

func (c *Carbon) AddDays(days int) *Carbon

func (*Carbon) AddDecade

func (c *Carbon) AddDecade() *Carbon

func (*Carbon) AddDecades

func (c *Carbon) AddDecades(decades int) *Carbon

func (*Carbon) AddHour

func (c *Carbon) AddHour() *Carbon

func (*Carbon) AddHours

func (c *Carbon) AddHours(hours int) *Carbon

func (*Carbon) AddMinute

func (c *Carbon) AddMinute() *Carbon

func (*Carbon) AddMinutes

func (c *Carbon) AddMinutes(minutes int) *Carbon

func (*Carbon) AddMonth

func (c *Carbon) AddMonth() *Carbon

func (*Carbon) AddMonths

func (c *Carbon) AddMonths(months int) *Carbon

func (*Carbon) AddSecond

func (c *Carbon) AddSecond() *Carbon

func (*Carbon) AddSeconds

func (c *Carbon) AddSeconds(seconds int) *Carbon

func (*Carbon) AddYear

func (c *Carbon) AddYear() *Carbon

func (*Carbon) AddYears

func (c *Carbon) AddYears(years int) *Carbon

func (*Carbon) Between

func (c *Carbon) Between(before, after *Carbon) bool

func (*Carbon) Copy

func (c *Carbon) Copy() *Carbon

func (*Carbon) DayName

func (c *Carbon) DayName() string

func (*Carbon) DayNumber

func (c *Carbon) DayNumber() int

func (*Carbon) DaysInMonth

func (c *Carbon) DaysInMonth() int

func (*Carbon) DaysInYear

func (c *Carbon) DaysInYear() int

func (*Carbon) DaysLeftInMonth

func (c *Carbon) DaysLeftInMonth() int

func (*Carbon) DaysLeftInWeek

func (c *Carbon) DaysLeftInWeek() int

func (*Carbon) DaysLeftInWorkWeek

func (c *Carbon) DaysLeftInWorkWeek() int

func (*Carbon) DaysLeftInYear

func (c *Carbon) DaysLeftInYear() int

func (*Carbon) DaysToAutumn

func (c *Carbon) DaysToAutumn() int

func (*Carbon) DaysToChristmas

func (c *Carbon) DaysToChristmas() int

func (*Carbon) DaysToHours

func (c *Carbon) DaysToHours(days int) int

func (*Carbon) DaysToSpring

func (c *Carbon) DaysToSpring() int

func (*Carbon) DaysToSummer

func (c *Carbon) DaysToSummer() int

func (*Carbon) DaysToWinter

func (c *Carbon) DaysToWinter() int

func (*Carbon) DiffInDays

func (c *Carbon) DiffInDays(from *Carbon) int

func (*Carbon) DiffInHours

func (c *Carbon) DiffInHours(from *Carbon) int

func (*Carbon) DiffInHuman

func (c *Carbon) DiffInHuman(from *Carbon) string

func (*Carbon) DiffInHumanShort

func (c *Carbon) DiffInHumanShort(from *Carbon) string

func (*Carbon) DiffInMinutes

func (c *Carbon) DiffInMinutes(from *Carbon) int

func (*Carbon) DiffInMonths

func (c *Carbon) DiffInMonths(from *Carbon) int

func (*Carbon) DiffInSeconds

func (c *Carbon) DiffInSeconds(from *Carbon) int

func (*Carbon) DiffInYears

func (c *Carbon) DiffInYears(from *Carbon) int

func (*Carbon) EndOfDay

func (c *Carbon) EndOfDay() *Carbon

func (*Carbon) EndOfHour

func (c *Carbon) EndOfHour() *Carbon

func (*Carbon) EndOfMonth

func (c *Carbon) EndOfMonth() *Carbon

func (*Carbon) EndOfQuarter

func (c *Carbon) EndOfQuarter() *Carbon

func (*Carbon) EndOfWeek

func (c *Carbon) EndOfWeek() *Carbon

func (*Carbon) EndOfYear

func (c *Carbon) EndOfYear() *Carbon

func (*Carbon) Eq

func (c *Carbon) Eq(another *Carbon) bool

func (*Carbon) FormatIt

func (c *Carbon) FormatIt(format int) string

func (*Carbon) Gt

func (c *Carbon) Gt(another *Carbon) bool

func (*Carbon) In

func (c *Carbon) In(location string) *Carbon

func (*Carbon) IsAutumn

func (c *Carbon) IsAutumn() bool

func (*Carbon) IsDay

func (c *Carbon) IsDay(day time.Weekday) bool

func (*Carbon) IsFriday

func (c *Carbon) IsFriday() bool

func (*Carbon) IsFuture

func (c *Carbon) IsFuture(t2 *Carbon) bool

func (*Carbon) IsLeapYear

func (c *Carbon) IsLeapYear() bool

func (*Carbon) IsMonday

func (c *Carbon) IsMonday() bool

func (*Carbon) IsPast

func (c *Carbon) IsPast(t2 *Carbon) bool

func (*Carbon) IsSaturday

func (c *Carbon) IsSaturday() bool

func (*Carbon) IsSpring

func (c *Carbon) IsSpring() bool

func (*Carbon) IsSummer

func (c *Carbon) IsSummer() bool

func (*Carbon) IsSunday

func (c *Carbon) IsSunday() bool

func (*Carbon) IsThursday

func (c *Carbon) IsThursday() bool

func (*Carbon) IsTuesday

func (c *Carbon) IsTuesday() bool

func (*Carbon) IsWednesday

func (c *Carbon) IsWednesday() bool

func (*Carbon) IsWeekday

func (c *Carbon) IsWeekday() bool

func (*Carbon) IsWeekend

func (c *Carbon) IsWeekend() bool

func (*Carbon) IsWinter

func (c *Carbon) IsWinter() bool

func (*Carbon) Lt

func (c *Carbon) Lt(another *Carbon) bool

func (*Carbon) MonthName

func (c *Carbon) MonthName() string

func (*Carbon) MonthNumber

func (c *Carbon) MonthNumber() int

func (*Carbon) NextDay

func (c *Carbon) NextDay(day time.Weekday) *Carbon

func (*Carbon) NextLeapYear

func (c *Carbon) NextLeapYear() int

func (*Carbon) NextMonth

func (c *Carbon) NextMonth() *Carbon

func (*Carbon) Ordinal

func (c *Carbon) Ordinal() string

func (*Carbon) OrdinalOnly

func (c *Carbon) OrdinalOnly() string

func (*Carbon) PreviousDay

func (c *Carbon) PreviousDay(day time.Weekday) *Carbon

func (*Carbon) PreviousMonth

func (c *Carbon) PreviousMonth() *Carbon

func (*Carbon) PreviousMonthLastDay

func (c *Carbon) PreviousMonthLastDay() *Carbon

func (*Carbon) PreviousMonthStartDay

func (c *Carbon) PreviousMonthStartDay() *Carbon

func (*Carbon) Quarter

func (c *Carbon) Quarter(FYStartMonth ...time.Month) int

func (*Carbon) Season

func (c *Carbon) Season() string

func (*Carbon) SetDay

func (c *Carbon) SetDay(day int) *Carbon

func (*Carbon) SetHour

func (c *Carbon) SetHour(hour int) *Carbon

func (*Carbon) SetMinute

func (c *Carbon) SetMinute(minute int) *Carbon

func (*Carbon) SetMonth

func (c *Carbon) SetMonth(month time.Month) *Carbon

func (*Carbon) SetSecond

func (c *Carbon) SetSecond(second int) *Carbon

func (*Carbon) SetTZ

func (c *Carbon) SetTZ(tz string) *Carbon

func (*Carbon) SetTime

func (c *Carbon) SetTime(hours, minutes, seconds int) *Carbon

func (*Carbon) SetYear

func (c *Carbon) SetYear(year int) *Carbon

func (*Carbon) StartOfDay

func (c *Carbon) StartOfDay() *Carbon

func (*Carbon) StartOfHour

func (c *Carbon) StartOfHour() *Carbon

func (*Carbon) StartOfMonth

func (c *Carbon) StartOfMonth() *Carbon

func (*Carbon) StartOfQuarter

func (c *Carbon) StartOfQuarter() *Carbon

func (*Carbon) StartOfWeek

func (c *Carbon) StartOfWeek(firstDayOfWeekIsMonday ...bool) *Carbon

func (*Carbon) StartOfYear

func (c *Carbon) StartOfYear() *Carbon

func (*Carbon) SubDay

func (c *Carbon) SubDay() *Carbon

func (*Carbon) SubDays

func (c *Carbon) SubDays(days int) *Carbon

func (*Carbon) SubDecade

func (c *Carbon) SubDecade() *Carbon

func (*Carbon) SubDecades

func (c *Carbon) SubDecades(decades int) *Carbon

func (*Carbon) SubHour

func (c *Carbon) SubHour() *Carbon

func (*Carbon) SubHours

func (c *Carbon) SubHours(hours int) *Carbon

func (*Carbon) SubMinute

func (c *Carbon) SubMinute() *Carbon

func (*Carbon) SubMinutes

func (c *Carbon) SubMinutes(minutes int) *Carbon

func (*Carbon) SubMonth

func (c *Carbon) SubMonth() *Carbon

func (*Carbon) SubMonths

func (c *Carbon) SubMonths(months int) *Carbon

func (*Carbon) SubSecond

func (c *Carbon) SubSecond() *Carbon

func (*Carbon) SubSeconds

func (c *Carbon) SubSeconds(seconds int) *Carbon

func (*Carbon) SubYear

func (c *Carbon) SubYear() *Carbon

func (*Carbon) SubYears

func (c *Carbon) SubYears(years int) *Carbon

func (*Carbon) TaxYear

func (c *Carbon) TaxYear() string

func (*Carbon) ToDateTimeString

func (c *Carbon) ToDateTimeString() string

func (*Carbon) ToTimeStamp

func (c *Carbon) ToTimeStamp() int64

func (*Carbon) Tomorrow

func (c *Carbon) Tomorrow() *Carbon

func (*Carbon) Week

func (c *Carbon) Week() int

func (*Carbon) WeekOfMonth

func (c *Carbon) WeekOfMonth() int

func (*Carbon) YearNumber

func (c *Carbon) YearNumber() int

func (*Carbon) Yesterday

func (c *Carbon) Yesterday() *Carbon

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL