-
Backend
-
Behaviors
-
Classes
-
Controllers
-
Database
-
Seeds
-
-
Facades
-
FormWidgets
-
Helpers
-
Models
-
ReportWidgets
-
Skins
-
Traits
-
VueComponents
-
Widgets
- ServiceProvider
-
-
Cms
-
Classes
- Asset
- CmsCompoundObject
- CmsController
- CmsException
- CmsObject
- CmsObjectCollection
- CodeBase
- CodeParser
- ComponentBase
- ComponentHelpers
- ComponentManager
- ComponentPartial
- Content
- Controller
- EditorExtension
- Layout
- LayoutCode
- MediaLibrary
- MediaLibraryItem
- MediaViewHelper
- Meta
- ObjectMemoryCache
- Page
- PageCode
- Partial
- PartialCode
- PartialStack
- Router
- Theme
- ThemeManager
-
Components
-
Controllers
-
Facades
-
FormWidgets
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
- ComponentNode
- ComponentTokenParser
- ContentNode
- ContentTokenParser
- DebugExtension
- DefaultNode
- DefaultTokenParser
- Extension
- FlashNode
- FlashTokenParser
- FrameworkNode
- FrameworkTokenParser
- Loader
- PageNode
- PageTokenParser
- PartialNode
- PartialTokenParser
- PlaceholderNode
- PlaceholderTokenParser
- PutNode
- PutTokenParser
- ScriptsNode
- ScriptsTokenParser
- StylesNode
- StylesTokenParser
-
VueComponents
-
Widgets
- ServiceProvider
-
-
Editor
-
Behaviors
-
Classes
-
Controllers
-
VueComponents
- ServiceProvider
-
-
Media
-
Classes
-
Controllers
-
FormWidgets
-
Twig
-
Widgets
- ServiceProvider
-
-
System
-
Behaviors
-
Classes
-
Console
-
OctoberUtil
- ComposerScript
- OctoberDown
- OctoberFresh
- OctoberMigrate
- OctoberMirror
- OctoberPasswd
- OctoberUp
- OctoberUpdate
- OctoberUtil
- PluginCheck
- PluginDisable
- PluginEnable
- PluginInstall
- PluginList
- PluginRefresh
- PluginRemove
- ProjectSet
- ProjectSync
- ThemeCheck
- ThemeInstall
- ThemeList
- ThemeRemove
- ThemeSync
- ThemeUse
-
-
Controllers
-
Database
-
Facades
-
Helpers
-
Models
-
ReportWidgets
-
Traits
-
Twig
-
Widgets
- ServiceProvider
-
-
Events
-
backend
-
ajax
-
filter
-
form
-
list
-
menu
-
page
-
user
-
-
cms
-
ajax
-
block
-
combiner
-
component
-
object
-
page
-
resizer
-
router
-
template
-
theme
-
-
exception
-
halcyon
-
datasource
-
-
mailer
-
media
-
model
-
auth
-
form
-
relation
-
/docs/api/model/relation/add
-
/docs/api/model/relation/associate
- attach
-
/docs/api/model/relation/beforeadd
-
/docs/api/model/relation/beforeassociate
- beforeAttach
- beforeDetach
-
/docs/api/model/relation/beforedissociate
-
/docs/api/model/relation/beforeremove
- detach
-
/docs/api/model/relation/dissociate
-
/docs/api/model/relation/remove
-
- afterBoot
- afterCreate
- afterDelete
- afterFetch
- afterRestore
- afterSave
- afterUpdate
- afterValidate
- beforeCreate
- beforeDelete
- beforeFetch
- beforeGetAttribute
- beforeRestore
- beforeSave
- beforeSetAttribute
- beforeUpdate
- beforeValidate
- getAttribute
- saveInternal
- setAttribute
-
-
system
-
assets
-
console
-
mirror
-
theme
-
-
reportwidgets
-
resizer
-
settings
- extendConfigFile
-
-
translator
-
-
Library
-
Argon
-
Assetic
-
Asset
-
Cache
-
Exception
-
Factory
-
Filter
- BaseCssFilter
- CallablesFilter
- CssCacheBustingFilter
- CssImportFilter
- CssMinFilter
- CssRewriteFilter
- FilterCollection
- JavascriptImporter
- JSMinFilter
- JSMinPlusFilter
- JSqueezeFilter
- LessCompiler
- LessphpFilter
- MinifyCssCompressorFilter
- PackagerFilter
- PackerFilter
- ScssCompiler
- ScssphpFilter
- StylesheetMinify
-
Util
- README
- AssetManager
- AssetWriter
- FilterManager
-
-
Auth
-
Models
- AuthException
- Manager
-
-
Config
-
Database
-
Attach
-
Behaviors
-
Concerns
-
Connections
-
Connectors
-
Models
-
Relations
-
Schema
-
Traits
-
Updates
- README
- Builder
- Collection
- DatabaseServiceProvider
- DataFeed
- Dongle
- MemoryCache
- MigrationServiceProvider
- Model
- ModelBehavior
- ModelException
- MorphPivot
- NestedTreeScope
- Pivot
- QueryBuilder
- SortableScope
- TreeCollection
- Updater
-
-
Events
-
Exception
-
Extension
-
Filesystem
-
Flash
-
Foundation
-
Bootstrap
-
Console
-
Exception
-
Http
-
Middleware
- Kernel
-
-
Providers
- Application
- Maker
-
-
Halcyon
-
Datasource
-
Exception
-
Processors
-
Traits
- README
- Builder
- Collection
- HalcyonServiceProvider
- MemoryCacheManager
- MemoryRepository
- Model
-
-
Html
-
Mail
-
Network
-
Parse
-
Parsedown
-
Syntax
- Bracket
- Ini
- Markdown
- MarkdownData
- ParseServiceProvider
- Twig
- Yaml
-
-
Process
-
Resize
-
Router
-
Scaffold
-
Support
-
Translation
-
- Documentation
- API
- Library
- Argon
- Argon
October\Rain\Argon\Argon
Extends:
- Carbon\Carbon
- DateTime
Implements:
- JsonSerializable
- Carbon\CarbonInterface
- DateTimeInterface
Argon is an umbrella class for Carbon
Public properties
There are no public properties in the class.
Show inherited public properties
Inherited public properties
- public static int $PHPIntSize - defined in Carbon\Carbon. Customizable PHP_INT_SIZE override.
Protected properties
protected static string|callable|null $formatFunction
formatFunction function to call instead of format
protected static string|callable|null $createFromFormatFunction
createFromFormatFunction function to call instead of createFromFormat
protected static string|callable|null $parseFunction
parseFunction function to call instead of parse.
Show inherited protected properties
Inherited protected properties
- protected static array $days - defined in Carbon\Carbon. Names of days of the week.
- protected static bool $utf8 - defined in Carbon\Carbon. Will UTF8 encoding be used to print localized date/time ?
- protected static array $units - defined in Carbon\Carbon. List of unit and magic methods associated as doc-comments.
- protected bool $endOfTime - defined in Carbon\Carbon. *.
- protected bool $startOfTime - defined in Carbon\Carbon. *.
- protected static string|Closure|null $toStringFormat - defined in Carbon\Carbon. Format to use for __toString method when type juggling occurs.
- protected static array $lastErrors - defined in Carbon\Carbon. The errors that can occur.
- protected string $constructedObjectId - defined in Carbon\Carbon. True when parent::__construct has been called.
- protected static array $globalMacros - defined in Carbon\Carbon. The registered macros.
- protected static array $globalGenericMacros - defined in Carbon\Carbon. The registered generic macros.
- protected static array $macroContextStack - defined in Carbon\Carbon. Stack of macro instance contexts.
- protected static int $midDayAt - defined in Carbon\Carbon. Midday/noon hour.
- protected static int|string $weekStartsAt - defined in Carbon\Carbon. First day of week.
- protected static int|string $weekEndsAt - defined in Carbon\Carbon. Last day of week.
- protected static array $weekendDays - defined in Carbon\Carbon. Days of weekend.
- protected static array<string, $regexFormats - defined in Carbon\Carbon. Format regex patterns.
- protected static array $regexFormatModifiers - defined in Carbon\Carbon. Format modifiers (such as available in createFromFormat) regex patterns.
- protected static bool $monthsOverflow - defined in Carbon\Carbon. Indicates if months should be calculated with overflow.
- protected static bool $yearsOverflow - defined in Carbon\Carbon. Indicates if years should be calculated with overflow.
- protected static bool $strictModeEnabled - defined in Carbon\Carbon. Indicates if the strict mode is in use.
- protected bool|null $localMonthsOverflow - defined in Carbon\Carbon. Indicates if months should be calculated with overflow.
- protected bool|null $localYearsOverflow - defined in Carbon\Carbon. Indicates if years should be calculated with overflow.
- protected bool|null $localStrictModeEnabled - defined in Carbon\Carbon. Indicates if the strict mode is in use.
- protected bool|null $localHumanDiffOptions - defined in Carbon\Carbon. Options for diffForHumans and forHumans methods.
- protected string|null $localToStringFormat - defined in Carbon\Carbon. Format to use on string cast.
- protected string|null $localSerializer - defined in Carbon\Carbon. Format to use on JSON serialization.
- protected array|null $localMacros - defined in Carbon\Carbon. Instance-specific macros.
- protected array|null $localGenericMacros - defined in Carbon\Carbon. Instance-specific generic macros.
- protected string|callable|null $localFormatFunction - defined in Carbon\Carbon. Function to call instead of format.
- protected static Symfony\Component\Translation\TranslatorInterface $translator - defined in Carbon\Carbon. Default translator.
- protected Symfony\Component\Translation\TranslatorInterface $localTranslator - defined in Carbon\Carbon. Specific translator of the current instance.
- protected static int $humanDiffOptions - defined in Carbon\Carbon. Options for diffForHumans().
- protected static callable|null $serializer - defined in Carbon\Carbon. The custom Carbon JSON serializer.
- protected string[] $dumpProperties - defined in Carbon\Carbon. List of key to use for dump/serialization.
- protected string|null $dumpLocale - defined in Carbon\Carbon. Locale to dump comes here before serialization.
- protected static static $testNow - defined in Carbon\Carbon. A test Carbon instance to be returned when now instances are created.
Public methods
public static void createFromFormatWithCurrentLocale($format, $time=NULL, $timezone=NULL)
createFromFormatWithCurrentLocale
Parameters
- $format
- $time
- $timezone
public static string getLanguageFromLocale(string $locale)
getLanguageFromLocale gets the language portion of the locale.
Parameters
- string $locale
public static void parseWithCurrentLocale($time=NULL, $timezone=NULL)
parseWithCurrentLocale
Parameters
- $time
- $timezone
Inherited public methods
- public mixed __call(string $method, array $parameters) - defined in Carbon\Carbon. Dynamically handle calls to the class.
- public static mixed __callStatic(string $method, array $parameters) - defined in Carbon\Carbon. Dynamically handle calls to the class.
- public void __clone() - defined in Carbon\Carbon. Update constructedObjectId on cloned.
- public void __construct(DateTimeInterface|string|null $time=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a new Carbon instance.
- public array __debugInfo() - defined in Carbon\Carbon. Show truthy properties on var_dump().
- public string|int|bool|DateTimeZone|null __get(string $name) - defined in Carbon\Carbon. Get a part of the Carbon object.
- public bool __isset(string $name) - defined in Carbon\Carbon. Check if an attribute exists on the object.
- public void __set(string $name, string|int|DateTimeZone $value) - defined in Carbon\Carbon. Set a part of the Carbon object.
- public static static __set_state(string|array $dump) - defined in Carbon\Carbon. The __set_state handler.
- public array __sleep() - defined in Carbon\Carbon. Returns the list of properties to dump on serialize() called on.
- public string __toString() - defined in Carbon\Carbon. Format the instance as a string using the set format.
- public void __wakeup() - defined in Carbon\Carbon. Set locale if specified on unserialize() called.
- public static add(string|DateInterval|Closure|CarbonConverterInterface $unit, int $value=1, bool|null $overflow=NULL) - defined in Carbon\Carbon. Add given units or interval to the current instance.
- public static addRealUnit(string $unit, int $value=1) - defined in Carbon\Carbon. Add seconds to the instance using timestamp. Positive $value travels.
- public static addUnit(string $unit, int $value=1, bool|null $overflow=NULL) - defined in Carbon\Carbon. Add given units to the current instance.
- public static addUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit) - defined in Carbon\Carbon. Add any unit to a new value without overflowing current other unit given.
- public string ago(int|array $syntax=NULL, bool $short=false, int $parts=1, int $options=NULL) - defined in Carbon\Carbon. Get the difference in a human readable format in the current locale from an other.
- public static average(Carbon\Carbon|\DateTimeInterface|null $date=NULL) - defined in Carbon\Carbon. Modify the current instance to the average of a given instance (default now) and the current instance.
- public bool between(Carbon\Carbon|\DateTimeInterface|mixed $date1, Carbon\Carbon|\DateTimeInterface|mixed $date2, bool $equal=true) - defined in Carbon\Carbon. Determines if the instance is between two others.
- public bool betweenExcluded(Carbon\Carbon|\DateTimeInterface|mixed $date1, Carbon\Carbon|\DateTimeInterface|mixed $date2) - defined in Carbon\Carbon. Determines if the instance is between two others, bounds excluded.
- public bool betweenIncluded(Carbon\Carbon|\DateTimeInterface|mixed $date1, Carbon\Carbon|\DateTimeInterface|mixed $date2) - defined in Carbon\Carbon. Determines if the instance is between two others, bounds included.
- public string calendar(Carbon|\DateTimeInterface|string|null $referenceTime=NULL, array $formats=array()) - defined in Carbon\Carbon. Returns either day of week + time (e.g. "Last Friday at 3:30 PM") if reference time is within 7 days,
- public static bool canBeCreatedFromFormat(string $date, string $format) - defined in Carbon\Carbon. Checks if the (date)time string is in a given format and valid to create a.
- public static carbonize(Carbon|\Carbon\CarbonPeriod|\Carbon\CarbonInterval|\DateInterval|\DatePeriod|DateTimeInterface|string|null $date=NULL) - defined in Carbon\Carbon. Return the Carbon instance passed through, a now instance in the same timezone.
- public DateTimeInterface cast(string $className) - defined in Carbon\Carbon. Cast the current instance into the given class.
- public CarbonInterface ceil(float|int|string|\DateInterval|null $precision=1) - defined in Carbon\Carbon. Ceil the current instance second with given precision if specified.
- public CarbonInterface ceilUnit(string $unit, float|int $precision=1) - defined in Carbon\Carbon. Ceil the current instance at the given unit with given precision if specified.
- public CarbonInterface ceilWeek(int $weekStartsAt=NULL) - defined in Carbon\Carbon. Ceil the current instance week.
- public static change(string $modifier) - defined in Carbon\Carbon. Similar to native modify() method of DateTime but can handle more grammars.
- public void cleanupDumpProperties() - defined in Carbon\Carbon. Cleanup properties attached to the public scope of DateTime when a dump of the date is requested.
- public static clone() - defined in Carbon\Carbon.
- public static closest(Carbon\Carbon|\DateTimeInterface|mixed $date1, Carbon\Carbon|\DateTimeInterface|mixed $date2) - defined in Carbon\Carbon. Get the closest date from the instance (second-precision).
- public static copy() - defined in Carbon\Carbon. Get a copy of the instance.
- public static static|false create(int|null $year=0, int|null $month=1, int|null $day=1, int|null $hour=0, int|null $minute=0, int|null $second=0, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a new Carbon instance from a specific date and time.
- public static static createFromDate(int|null $year=NULL, int|null $month=NULL, int|null $day=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from just a date. The time portion is set to now.
- public static static|false createFromFormat(string $format, string $time, DateTimeZone|string|false|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a specific format.
- public static void createFromImmutable($DateTimeImmutable) - defined in DateTime.
- public static static|false createFromIsoFormat(string $format, string $time, DateTimeZone|string|false|null $tz=NULL, string|null $locale='en', Symfony\Component\Translation\TranslatorInterface $translator=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a specific ISO format (same replacements as ->isoFormat()).
- public static static|false createFromLocaleFormat(string $format, string $locale, string $time, DateTimeZone|string|false|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a specific format and a string in a given language.
- public static static|false createFromLocaleIsoFormat(string $format, string $locale, string $time, DateTimeZone|string|false|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a specific ISO format and a string in a given language.
- public static static createFromTime(int|null $hour=0, int|null $minute=0, int|null $second=0, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from just a time. The date portion is set to today.
- public static static createFromTimeString(string $time, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a time string. The date portion is set to today.
- public static static createFromTimestamp(float|int|string $timestamp, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a timestamp and set the timezone (use default one if not specified).
- public static static createFromTimestampMs(float|int|string $timestamp, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a timestamp in milliseconds.
- public static static createFromTimestampMsUTC(float|int|string $timestamp) - defined in Carbon\Carbon. Create a Carbon instance from a timestamp in milliseconds.
- public static static createFromTimestampUTC(float|int|string $timestamp) - defined in Carbon\Carbon. Create a Carbon instance from an timestamp keeping the timezone to UTC.
- public static static createMidnightDate(int|null $year=NULL, int|null $month=NULL, int|null $day=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from just a date. The time portion is set to midnight.
- public static static|false createSafe(int|null $year=NULL, int|null $month=NULL, int|null $day=NULL, int|null $hour=NULL, int|null $minute=NULL, int|null $second=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a new safe Carbon instance from a specific date and time.
- public static|int dayOfYear(int|null $value=NULL) - defined in Carbon\Carbon. Get/set the day of year.
- public DateInterval diff(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=false) - defined in Carbon\Carbon. Get the difference as a DateInterval instance.
- public CarbonInterval diffAsCarbonInterval(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference as a CarbonInterval instance.
- public int diffFiltered(CarbonInterval $ci, Closure $callback, Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference by the given interval using a filter closure.
- public string diffForHumans(Carbon|\DateTimeInterface|string|array|null $other=NULL, int|array $syntax=NULL, bool $short=false, int $parts=1, int $options=NULL) - defined in Carbon\Carbon. Get the difference in a human readable format in the current locale from current instance to an other.
- public int diffInDays(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in days rounded down.
- public int diffInDaysFiltered(Closure $callback, Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in days using a filter closure rounded down.
- public int diffInHours(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in hours rounded down.
- public int diffInHoursFiltered(Closure $callback, Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in hours using a filter closure rounded down.
- public int diffInMicroseconds(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in microseconds.
- public int diffInMilliseconds(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in milliseconds rounded down.
- public int diffInMinutes(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in minutes rounded down.
- public int diffInMonths(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in months rounded down.
- public int diffInQuarters(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in quarters rounded down.
- public int diffInRealHours(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in hours rounded down using timestamps.
- public int diffInRealMicroseconds(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in microseconds using timestamps.
- public int diffInRealMilliseconds(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in milliseconds rounded down using timestamps.
- public int diffInRealMinutes(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in minutes rounded down using timestamps.
- public int diffInRealSeconds(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in seconds using timestamps.
- public int diffInSeconds(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in seconds rounded down.
- public int diffInWeekdays(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in weekdays rounded down.
- public int diffInWeekendDays(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in weekend days using a filter rounded down.
- public int diffInWeeks(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in weeks rounded down.
- public int diffInYears(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in years.
- public static void disableHumanDiffOption(int $humanDiffOption) - defined in Carbon\Carbon.
- public static void enableHumanDiffOption(int $humanDiffOption) - defined in Carbon\Carbon.
- public static endOf(string $unit, array<int, $params=NULL) - defined in Carbon\Carbon. Modify to end of current given unit.
- public static endOfCentury() - defined in Carbon\Carbon. Resets the date to end of the century and time to 23:59:59.999999.
- public static endOfDay() - defined in Carbon\Carbon. Resets the time to 23:59:59.999999 end of day.
- public static endOfDecade() - defined in Carbon\Carbon. Resets the date to end of the decade and time to 23:59:59.999999.
- public static endOfHour() - defined in Carbon\Carbon. Modify to end of current hour, minutes and seconds become 59.
- public static endOfMillennium() - defined in Carbon\Carbon. Resets the date to end of the millennium and time to 23:59:59.999999.
- public static endOfMinute() - defined in Carbon\Carbon. Modify to end of current minute, seconds become 59.
- public static endOfMonth() - defined in Carbon\Carbon. Resets the date to end of the month and time to 23:59:59.999999.
- public static endOfQuarter() - defined in Carbon\Carbon. Resets the date to end of the quarter and time to 23:59:59.999999.
- public static endOfSecond() - defined in Carbon\Carbon. Modify to end of current second, microseconds become 999999.
- public static endOfWeek(int $weekEndsAt=NULL) - defined in Carbon\Carbon. Resets the date to end of week (defined in $weekEndsAt) and time to 23:59:59.999999.
- public static endOfYear() - defined in Carbon\Carbon. Resets the date to end of the year and time to 23:59:59.999999.
- public bool eq(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is equal to another.
- public bool equalTo(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is equal to another.
- public static mixed executeWithLocale(string $locale, callable $func) - defined in Carbon\Carbon. Set the current locale to the given, execute the passed function, reset the locale to previous one,
- public static farthest(Carbon\Carbon|\DateTimeInterface|mixed $date1, Carbon\Carbon|\DateTimeInterface|mixed $date2) - defined in Carbon\Carbon. Get the farthest date from the instance (second-precision).
- public static firstOfMonth(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the first occurrence of a given day of the week.
- public static firstOfQuarter(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the first occurrence of a given day of the week.
- public static firstOfYear(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the first occurrence of a given day of the week.
- public float floatDiffInDays(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in days as float (microsecond-precision).
- public float floatDiffInHours(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in hours as float (microsecond-precision).
- public float floatDiffInMinutes(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in minutes as float (microsecond-precision).
- public float floatDiffInMonths(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in months as float (microsecond-precision).
- public float floatDiffInRealDays(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in days as float (microsecond-precision).
- public float floatDiffInRealHours(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in hours as float (microsecond-precision) using timestamps.
- public float floatDiffInRealMinutes(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in minutes as float (microsecond-precision) using timestamps.
- public float floatDiffInRealMonths(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in months as float (microsecond-precision) using timestamps.
- public float floatDiffInRealSeconds(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in seconds as float (microsecond-precision) using timestamps.
- public float floatDiffInRealWeeks(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in weeks as float (microsecond-precision).
- public float floatDiffInRealYears(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in year as float (microsecond-precision) using timestamps.
- public float floatDiffInSeconds(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in seconds as float (microsecond-precision).
- public float floatDiffInWeeks(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in weeks as float (microsecond-precision).
- public float floatDiffInYears(Carbon\CarbonInterface|\DateTimeInterface|string|null $date=NULL, bool $absolute=true) - defined in Carbon\Carbon. Get the difference in year as float (microsecond-precision).
- public CarbonInterface floor(float|int|string|\DateInterval|null $precision=1) - defined in Carbon\Carbon. Round the current instance second with given precision if specified.
- public CarbonInterface floorUnit(string $unit, float|int $precision=1) - defined in Carbon\Carbon. Truncate the current instance at the given unit with given precision if specified.
- public CarbonInterface floorWeek(int $weekStartsAt=NULL) - defined in Carbon\Carbon. Truncate the current instance week.
- public string format(string $format) - defined in Carbon\Carbon. Returns the formatted date string on success or FALSE on failure.
- public string formatLocalized(string $format) - defined in Carbon\Carbon. Format the instance with the current locale. You can set the current.
- public string from(Carbon|\DateTimeInterface|string|array|null $other=NULL, int|array $syntax=NULL, bool $short=false, int $parts=1, int $options=NULL) - defined in Carbon\Carbon.
- public string fromNow(int|array $syntax=NULL, bool $short=false, int $parts=1, int $options=NULL) - defined in Carbon\Carbon. Get the difference in a human readable format in the current locale from current.
- public static static fromSerialized(string $value) - defined in Carbon\Carbon. Create an instance from a serialized string.
- public static void genericMacro(object|callable $macro, int $priority=0) - defined in Carbon\Carbon. Register a custom macro.
- public string|int|bool|DateTimeZone|null get(string $name) - defined in Carbon\Carbon. Get a part of the Carbon object.
- public string getAltNumber(string $key) - defined in Carbon\Carbon. Returns the alternative number for a given date property if available in the current locale.
- public static array getAvailableLocales() - defined in Carbon\Carbon. Returns the list of internally available locales and already loaded custom locales.
- public static Language[] getAvailableLocalesInfo() - defined in Carbon\Carbon. Returns list of Language object for each available locale. This object allow you to get the ISO name, native.
- public array getCalendarFormats(string|null $locale=NULL) - defined in Carbon\Carbon. Returns list of calendar formats for ISO formatting.
- public static array getDays() - defined in Carbon\Carbon. Get the days of the week.
- public static string|null getFallbackLocale() - defined in Carbon\Carbon. Get the fallback locale.
- public static array getFormatsToIsoReplacements() - defined in Carbon\Carbon. List of replacements from date() format to isoFormat().
- public static int getHumanDiffOptions() - defined in Carbon\Carbon. Return default humanDiff() options (merged flags as integer).
- public array getIsoFormats(string|null $locale=NULL) - defined in Carbon\Carbon. Returns list of locale formats for ISO formatting.
- public static array getIsoUnits() - defined in Carbon\Carbon. Returns list of locale units for ISO formatting.
- public static void getLastErrors() - defined in Carbon\Carbon. {@inheritdoc}.
- public callable|null getLocalMacro(string $name) - defined in Carbon\Carbon. Get the raw callable macro registered globally or locally for a given name.
- public Symfony\Component\Translation\TranslatorInterface getLocalTranslator() - defined in Carbon\Carbon. Get the translator of the current instance or the default if none set.
- public static string getLocale() - defined in Carbon\Carbon. Get the current translator locale.
- public static callable|null getMacro(string $name) - defined in Carbon\Carbon. Get the raw callable macro registered globally for a given name.
- public static int getMidDayAt() - defined in Carbon\Carbon. get midday/noon hour.
- public void getOffset() - defined in DateTime.
- public string getOffsetString(string $separator=':') - defined in Carbon\Carbon. Returns the offset hour and minute formatted with +/- and a given separator (":" by default).
- public string getPaddedUnit(string $unit, int $length=2, string $padString='0', int $padType=0) - defined in Carbon\Carbon. Returns a unit of the instance padded with 0 by default or any other string if specified.
- public float getPreciseTimestamp(int $precision=6) - defined in Carbon\Carbon. Returns a timestamp rounded with the given precision (6 by default).
- public array getSettings() - defined in Carbon\Carbon. Returns current local settings.
- public static Closure|static getTestNow() - defined in Carbon\Carbon. Get the Carbon instance (real or mock) to be returned when a "now".
- public static string getTimeFormatByPrecision(string $unitPrecision) - defined in Carbon\Carbon. Return a format from H:i to H:i:s.u according to given unit precision.
- public void getTimestamp() - defined in DateTime.
- public CarbonTimeZone getTimezone() - defined in Carbon\Carbon. Get the TimeZone associated with the Carbon instance (as CarbonTimeZone).
- public string getTranslatedDayName(string|null $context=NULL, string $keySuffix='', string|null $defaultValue=NULL) - defined in Carbon\Carbon. Get the translation of the current week day name (with context for languages with multiple forms).
- public string getTranslatedMinDayName(string|null $context=NULL) - defined in Carbon\Carbon. Get the translation of the current abbreviated week day name (with context for languages with multiple forms).
- public string getTranslatedMonthName(string|null $context=NULL, string $keySuffix='', string|null $defaultValue=NULL) - defined in Carbon\Carbon. Get the translation of the current month day name (with context for languages with multiple forms).
- public string getTranslatedShortDayName(string|null $context=NULL) - defined in Carbon\Carbon. Get the translation of the current short week day name (with context for languages with multiple forms).
- public string getTranslatedShortMonthName(string|null $context=NULL) - defined in Carbon\Carbon. Get the translation of the current short month day name (with context for languages with multiple forms).
- public string getTranslationMessage(string $key, string|null $locale=NULL, string|null $default=NULL, Symfony\Component\Translation\TranslatorInterface $translator=NULL) - defined in Carbon\Carbon. Returns raw translation message for a given key.
- public static string getTranslationMessageWith(Symfony\Component\Translation\TranslatorInterface $translator, string $key, string|null $locale=NULL, string|null $default=NULL) - defined in Carbon\Carbon. Returns raw translation message for a given key.
- public static Symfony\Component\Translation\TranslatorInterface getTranslator() - defined in Carbon\Carbon. Get the default translator instance in use.
- public static int getWeekEndsAt() - defined in Carbon\Carbon. Get the last day of week.
- public static int getWeekStartsAt() - defined in Carbon\Carbon. Get the first day of week.
- public static array getWeekendDays() - defined in Carbon\Carbon. Get weekend days.
- public bool greaterThan(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is greater (after) than another.
- public bool greaterThanOrEqualTo(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is greater (after) than or equal to another.
- public bool gt(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is greater (after) than another.
- public bool gte(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is greater (after) than or equal to another.
- public static bool hasFormat(string $date, string $format) - defined in Carbon\Carbon. Checks if the (date)time string is in a given format.
- public static bool hasFormatWithModifiers(string $date, string $format) - defined in Carbon\Carbon. Checks if the (date)time string is in a given format.
- public bool hasLocalMacro(string $name) - defined in Carbon\Carbon. Checks if macro is registered globally or locally.
- public bool hasLocalTranslator() - defined in Carbon\Carbon. Return true if the current instance has its own translator.
- public static bool hasMacro(string $name) - defined in Carbon\Carbon. Checks if macro is registered globally.
- public static bool hasRelativeKeywords(string $time) - defined in Carbon\Carbon. Determine if a time string will produce a relative date.
- public static bool hasTestNow() - defined in Carbon\Carbon. Determine if there is a valid test instance set. A valid test instance.
- public static static instance(DateTimeInterface $date) - defined in Carbon\Carbon. Create a Carbon instance from a DateTime one.
- public bool is(string $tester) - defined in Carbon\Carbon. Returns true if the current date matches the given string.
- public bool isAfter(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is greater (after) than another.
- public bool isBefore(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is less (before) than another.
- public bool isBetween(Carbon\Carbon|\DateTimeInterface|mixed $date1, Carbon\Carbon|\DateTimeInterface|mixed $date2, bool $equal=true) - defined in Carbon\Carbon. Determines if the instance is between two others.
- public bool isBirthday(Carbon\Carbon|\DateTimeInterface|null $date=NULL) - defined in Carbon\Carbon. Check if its the birthday. Compares the date/month values of the two dates.
- public bool isCurrentUnit(string $unit) - defined in Carbon\Carbon. Determines if the instance is in the current unit given.
- public bool isDayOfWeek(int $dayOfWeek) - defined in Carbon\Carbon. Checks if this day is a specific day of the week.
- public bool isEndOfDay(bool $checkMicroseconds=false) - defined in Carbon\Carbon. Check if the instance is end of day.
- public bool isEndOfTime() - defined in Carbon\Carbon. Returns true if the date was created using CarbonImmutable::endOfTime().
- public bool isFuture() - defined in Carbon\Carbon. Determines if the instance is in the future, ie. greater (after) than now.
- public static bool isImmutable() - defined in Carbon\Carbon. Returns true if the current class/instance is immutable.
- public bool isLastOfMonth() - defined in Carbon\Carbon. Check if today is the last day of the Month.
- public bool isLeapYear() - defined in Carbon\Carbon. Determines if the instance is a leap year.
- public bool isLongYear() - defined in Carbon\Carbon. Determines if the instance is a long year.
- public bool isMidday() - defined in Carbon\Carbon. Check if the instance is midday.
- public bool isMidnight() - defined in Carbon\Carbon. Check if the instance is start of day / midnight.
- public static bool isModifiableUnit(string $unit) - defined in Carbon\Carbon. Returns true if a property can be changed via setter.
- public static bool isMutable() - defined in Carbon\Carbon. Returns true if the current class/instance is mutable.
- public bool isPast() - defined in Carbon\Carbon. Determines if the instance is in the past, ie. less (before) than now.
- public bool isSameAs(string $format, Carbon\Carbon|\DateTimeInterface|string|null $date=NULL) - defined in Carbon\Carbon. Compares the formatted values of the two dates.
- public bool isSameMonth(Carbon\Carbon|\DateTimeInterface|null $date=NULL, bool $ofSameYear=true) - defined in Carbon\Carbon. Checks if the passed in date is in the same month as the instance“s month.
- public bool isSameQuarter(Carbon\Carbon|\DateTimeInterface|string|null $date=NULL, bool $ofSameYear=true) - defined in Carbon\Carbon. Checks if the passed in date is in the same quarter as the instance quarter (and year if needed).
- public bool isSameUnit(string $unit, Carbon\Carbon|\DateTimeInterface|null $date=NULL) - defined in Carbon\Carbon. Determines if the instance is in the current unit given.
- public bool isStartOfDay(bool $checkMicroseconds=false) - defined in Carbon\Carbon. Check if the instance is start of day / midnight.
- public bool isStartOfTime() - defined in Carbon\Carbon. Returns true if the date was created using CarbonImmutable::startOfTime().
- public static bool isStrictModeEnabled() - defined in Carbon\Carbon. Returns true if the strict mode is globally in use, false else.
- public bool isToday() - defined in Carbon\Carbon. Determines if the instance is today.
- public bool isTomorrow() - defined in Carbon\Carbon. Determines if the instance is tomorrow.
- public bool isWeekday() - defined in Carbon\Carbon. Determines if the instance is a weekday.
- public bool isWeekend() - defined in Carbon\Carbon. Determines if the instance is a weekend day.
- public bool isYesterday() - defined in Carbon\Carbon. Determines if the instance is yesterday.
- public string isoFormat(string $format, string|null $originalFormat=NULL) - defined in Carbon\Carbon. Format in the current language using ISO replacement patterns.
- public int|static isoWeek(int|null $week=NULL, int|null $dayOfWeek=NULL, int|null $dayOfYear=NULL) - defined in Carbon\Carbon. Get/set the week number using given first day of week and first.
- public int|static isoWeekYear(int|null $year=NULL, int|null $dayOfWeek=NULL, int|null $dayOfYear=NULL) - defined in Carbon\Carbon. Set/get the week number of year using given first day of week and first.
- public static|int isoWeekday(int|null $value=NULL) - defined in Carbon\Carbon. Get/set the ISO weekday from 1 (Monday) to 7 (Sunday).
- public int isoWeeksInYear(int|null $dayOfWeek=NULL, int|null $dayOfYear=NULL) - defined in Carbon\Carbon. Get the number of weeks of the current week-year using given first day of week and first.
- public array|string jsonSerialize() - defined in Carbon\Carbon. Prepare the object for JSON serialization.
- public static lastOfMonth(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the last occurrence of a given day of the week.
- public static lastOfQuarter(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the last occurrence of a given day of the week.
- public static lastOfYear(int|null $dayOfWeek=NULL) - defined in Carbon\Carbon. Modify to the last occurrence of a given day of the week.
- public bool lessThan(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is less (before) than another.
- public bool lessThanOrEqualTo(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is less (before) or equal to another.
- public $this|string locale(string|null $locale=NULL, string $fallbackLocales=NULL) - defined in Carbon\Carbon. Get/set the locale for the current instance.
- public static bool localeHasDiffOneDayWords(string $locale) - defined in Carbon\Carbon. Returns true if the given locale is internally supported and has words for 1-day diff (just now, yesterday, tomorrow).
- public static bool localeHasDiffSyntax(string $locale) - defined in Carbon\Carbon. Returns true if the given locale is internally supported and has diff syntax support (ago, from now, before, after).
- public static bool localeHasDiffTwoDayWords(string $locale) - defined in Carbon\Carbon. Returns true if the given locale is internally supported and has words for 2-days diff (before yesterday, after tomorrow).
- public static bool localeHasPeriodSyntax(string $locale) - defined in Carbon\Carbon. Returns true if the given locale is internally supported and has period syntax support (X times, every X, from X, to X).
- public static bool localeHasShortUnits(string $locale) - defined in Carbon\Carbon. Returns true if the given locale is internally supported and has short-units support.
- public bool lt(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is less (before) than another.
- public bool lte(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is less (before) or equal to another.
- public static void macro(string $name, object|callable $macro) - defined in Carbon\Carbon. Register a custom macro.
- public static static|null make(mixed $var) - defined in Carbon\Carbon. Make a Carbon instance from given variable if possible.
- public static max(Carbon\Carbon|\DateTimeInterface|mixed $date=NULL) - defined in Carbon\Carbon. Get the maximum instance between a given instance (default now) and the current instance.
- public static static maxValue() - defined in Carbon\Carbon. Create a Carbon instance for the greatest supported date.
- public static maximum(Carbon\Carbon|\DateTimeInterface|mixed $date=NULL) - defined in Carbon\Carbon. Get the maximum instance between a given instance (default now) and the current instance.
- public string meridiem(bool $isLower=false) - defined in Carbon\Carbon. Return the meridiem of the current time in the current locale.
- public static midDay() - defined in Carbon\Carbon. Modify to midday, default to self::$midDayAt.
- public static min(Carbon\Carbon|\DateTimeInterface|mixed $date=NULL) - defined in Carbon\Carbon. Get the minimum instance between a given instance (default now) and the current instance.
- public static static minValue() - defined in Carbon\Carbon. Create a Carbon instance for the lowest supported date.
- public static minimum(Carbon\Carbon|\DateTimeInterface|mixed $date=NULL) - defined in Carbon\Carbon. Get the minimum instance between a given instance (default now) and the current instance.
- public static void mixin(object|string $mixin) - defined in Carbon\Carbon. Mix another object into the class.
- public void modify($modify) - defined in Carbon\Carbon. Calls \DateTime::modify if mutable or \DateTimeImmutable::modify else.
- public bool ne(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is not equal to another.
- public static next(string|int|null $modifier=NULL) - defined in Carbon\Carbon. Modify to the next occurrence of a given modifier such as a day of.
- public static nextWeekday() - defined in Carbon\Carbon. Go forward to the next weekday.
- public static nextWeekendDay() - defined in Carbon\Carbon. Go forward to the next weekend day.
- public bool notEqualTo(Carbon\Carbon|\DateTimeInterface|mixed $date) - defined in Carbon\Carbon. Determines if the instance is not equal to another.
- public static static now(DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Get a Carbon instance for the current date and time.
- public static nowWithSameTz() - defined in Carbon\Carbon. Returns a present instance in the same timezone.
- public mixed nthOfMonth(int $nth, int $dayOfWeek) - defined in Carbon\Carbon. Modify to the given occurrence of a given day of the week.
- public mixed nthOfQuarter(int $nth, int $dayOfWeek) - defined in Carbon\Carbon. Modify to the given occurrence of a given day of the week.
- public mixed nthOfYear(int $nth, int $dayOfWeek) - defined in Carbon\Carbon. Modify to the given occurrence of a given day of the week.
- public string ordinal(string $key, string|null $period=NULL) - defined in Carbon\Carbon. Return a property with its ordinal.
- public static static parse(string|DateTimeInterface|null $time=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a carbon instance from a string.
- public static static parseFromLocale(string $time, string|null $locale=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a carbon instance from a localized string (in French, Japanese, Arabic, etc.).
- public static string pluralUnit(string $unit) - defined in Carbon\Carbon. Returns standardized plural of a given singular/plural unit name (in English).
- public static previous(string|int|null $modifier=NULL) - defined in Carbon\Carbon. Modify to the previous occurrence of a given modifier such as a day of.
- public static previousWeekday() - defined in Carbon\Carbon. Go backward to the previous weekday.
- public static previousWeekendDay() - defined in Carbon\Carbon. Go backward to the previous weekend day.
- public CarbonPeriod range(DateTimeInterface|Carbon|CarbonImmutable|null $end=NULL, int|\DateInterval|string|null $interval=NULL, string|null $unit=NULL) - defined in Carbon\Carbon. Create a iterable CarbonPeriod object from current date to a given end date (and optional interval).
- public static rawAdd(DateInterval $interval) - defined in Carbon\Carbon. Call native PHP DateTime/DateTimeImmutable add() method.
- public static static|false rawCreateFromFormat(string $format, string $time, DateTimeZone|string|false|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance from a specific format.
- public string rawFormat(string $format) - defined in Carbon\Carbon.
- public static static rawParse(string|DateTimeInterface|null $time=NULL, DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a carbon instance from a string.
- public static rawSub(DateInterval $interval) - defined in Carbon\Carbon. Call native PHP DateTime/DateTimeImmutable sub() method.
- public static void resetMacros() - defined in Carbon\Carbon. Remove all macros and generic macros.
- public static void resetMonthsOverflow() - defined in Carbon\Carbon.
- public static void resetToStringFormat() - defined in Carbon\Carbon. Reset the format used to the default when type juggling a Carbon instance to a string.
- public static void resetYearsOverflow() - defined in Carbon\Carbon.
- public CarbonInterface round(float|int|string|\DateInterval|null $precision=1, string $function='round') - defined in Carbon\Carbon. Round the current instance second with given precision if specified.
- public CarbonInterface roundUnit(string $unit, float|int $precision=1, string $function='round') - defined in Carbon\Carbon. Round the current instance at the given unit with given precision if specified and the given function.
- public CarbonInterface roundWeek(int $weekStartsAt=NULL) - defined in Carbon\Carbon. Round the current instance week.
- public int secondsSinceMidnight() - defined in Carbon\Carbon. The number of seconds since midnight.
- public int secondsUntilEndOfDay() - defined in Carbon\Carbon. The number of seconds until 23:59:59.
- public string serialize() - defined in Carbon\Carbon. Return a serialized string of the instance.
- public static void serializeUsing(callable $callback) - defined in Carbon\Carbon.
- public $this set(string|array $name, string|int|DateTimeZone $value=NULL) - defined in Carbon\Carbon. Set a part of the Carbon object.
- public static setDate(int $year, int $month, int $day) - defined in Carbon\Carbon. Set the date with gregorian year, month and day numbers.
- public static setDateFrom(Carbon|DateTimeInterface $date=NULL) - defined in Carbon\Carbon. Set the year, month, and date for this instance to that of the passed instance.
- public static setDateTime(int $year, int $month, int $day, int $hour, int $minute, int $second=0, int $microseconds=0) - defined in Carbon\Carbon. Set the date and time all together.
- public static setDateTimeFrom(Carbon|DateTimeInterface $date=NULL) - defined in Carbon\Carbon. Set the date and time for this instance to that of the passed instance.
- public static void setFallbackLocale(string $locale) - defined in Carbon\Carbon. Set the fallback locale.
- public static void setHumanDiffOptions(int $humanDiffOptions) - defined in Carbon\Carbon. Sets
- public static setISODate(int $year, int $week, int $day=1) - defined in Carbon\Carbon. Set a date according to the ISO 8601 standard - using weeks and day offsets rather than specific dates.
- public $this setLocalTranslator(Symfony\Component\Translation\TranslatorInterface $translator) - defined in Carbon\Carbon. Set the translator for the current instance.
- public static bool setLocale(string $locale) - defined in Carbon\Carbon. Set the current translator locale and indicate if the source locale file exists.
- public static void setMidDayAt(int $hour) - defined in Carbon\Carbon. Sets Midday hour
- public static void setTestNow(Closure|static|string|false|null $testNow=NULL) - defined in Carbon\Carbon. Set a Carbon instance (real or mock) to be returned when a "now".
- public static setTime(int $hour, int $minute, int $second=0, int $microseconds=0) - defined in Carbon\Carbon. Resets the current time of the DateTime object to a different time.
- public static setTimeFrom(Carbon|DateTimeInterface $date=NULL) - defined in Carbon\Carbon. Set the hour, minute, second and microseconds for this instance to that of the passed instance.
- public static setTimeFromTimeString(string $time) - defined in Carbon\Carbon. Set the time by time string.
- public static setTimestamp(float|int|string $unixTimestamp) - defined in Carbon\Carbon. Set the instance's timestamp.
- public static setTimezone(DateTimeZone|string $value) - defined in Carbon\Carbon. Set the instance's timezone from a string or object.
- public static void setToStringFormat(string|Closure|null $format) - defined in Carbon\Carbon. Sets
- public static void setTranslator(Symfony\Component\Translation\TranslatorInterface $translator) - defined in Carbon\Carbon. Set the default translator instance to use.
- public static setUnit(string $unit, int $value=NULL) - defined in Carbon\Carbon. Set specified unit to new given value.
- public static setUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit) - defined in Carbon\Carbon. Set any unit to a new value without overflowing current other unit given.
- public static void setUtf8(bool $utf8) - defined in Carbon\Carbon. Sets
- public static void setWeekEndsAt(int|string $day) - defined in Carbon\Carbon. Sets Week end day (or 'auto' to get the day before the first day of week from Carbon::getLocale() culture).
- public static void setWeekStartsAt(int|string $day) - defined in Carbon\Carbon. Sets Week start day (or 'auto' to get the first day of week from Carbon::getLocale() culture).
- public static void setWeekendDays(array $days) - defined in Carbon\Carbon. Sets
- public $this|static settings(array $settings) - defined in Carbon\Carbon. Set specific options.
- public static shiftTimezone(DateTimeZone|string $value) - defined in Carbon\Carbon. Set the instance's timezone from a string or object and add/subtract the offset difference.
- public static bool shouldOverflowMonths() - defined in Carbon\Carbon. Get the month overflow global behavior (can be overridden in specific instances).
- public static bool shouldOverflowYears() - defined in Carbon\Carbon. Get the month overflow global behavior (can be overridden in specific instances).
- public void since($other=NULL, $syntax=NULL, $short=false, $parts=1, $options=NULL) - defined in Carbon\Carbon.
- public static string singularUnit(string $unit) - defined in Carbon\Carbon. Returns standardized singular of a given singular/plural unit name (in English).
- public static startOf(string $unit, array<int, $params=NULL) - defined in Carbon\Carbon. Modify to start of current given unit.
- public static startOfCentury() - defined in Carbon\Carbon. Resets the date to the first day of the century and the time to 00:00:00.
- public static startOfDay() - defined in Carbon\Carbon. Resets the time to 00:00:00 start of day.
- public static startOfDecade() - defined in Carbon\Carbon. Resets the date to the first day of the decade and the time to 00:00:00.
- public static startOfHour() - defined in Carbon\Carbon. Modify to start of current hour, minutes and seconds become 0.
- public static startOfMillennium() - defined in Carbon\Carbon. Resets the date to the first day of the millennium and the time to 00:00:00.
- public static startOfMinute() - defined in Carbon\Carbon. Modify to start of current minute, seconds become 0.
- public static startOfMonth() - defined in Carbon\Carbon. Resets the date to the first day of the month and the time to 00:00:00.
- public static startOfQuarter() - defined in Carbon\Carbon. Resets the date to the first day of the quarter and the time to 00:00:00.
- public static startOfSecond() - defined in Carbon\Carbon. Modify to start of current second, microseconds become 0.
- public static startOfWeek(int $weekStartsAt=NULL) - defined in Carbon\Carbon. Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00.
- public static startOfYear() - defined in Carbon\Carbon. Resets the date to the first day of the year and the time to 00:00:00.
- public static sub(string|DateInterval|Closure|CarbonConverterInterface $unit, int $value=1, bool|null $overflow=NULL) - defined in Carbon\Carbon. Subtract given units or interval to the current instance.
- public void subRealUnit($unit, $value=1) - defined in Carbon\Carbon.
- public static subUnit(string $unit, int $value=1, bool|null $overflow=NULL) - defined in Carbon\Carbon. Subtract given units to the current instance.
- public static subUnitNoOverflow(string $valueUnit, int $value, string $overflowUnit) - defined in Carbon\Carbon. Subtract any unit to a new value without overflowing current other unit given.
- public static subtract(string|DateInterval $unit, int $value=1, bool|null $overflow=NULL) - defined in Carbon\Carbon. Subtract given units or interval to the current instance.
- public string timespan($other=NULL, $timezone=NULL) - defined in Carbon\Carbon. Get the difference in a human readable format in the current locale from current instance to an other.
- public static timestamp(float|int|string $unixTimestamp) - defined in Carbon\Carbon. Set the instance's timestamp.
- public static timezone(DateTimeZone|string $value) - defined in Carbon\Carbon.
- public string to(Carbon|\DateTimeInterface|string|array|null $other=NULL, int|array $syntax=NULL, bool $short=false, int $parts=1, int $options=NULL) - defined in Carbon\Carbon. Get the difference in a human readable format in the current locale from an other.
- public array toArray() - defined in Carbon\Carbon. Get default array representation.
- public string toAtomString() - defined in Carbon\Carbon. Format the instance as ATOM.
- public string toCookieString() - defined in Carbon\Carbon. Format the instance as COOKIE.
- public DateTime toDate() - defined in Carbon\Carbon.
- public string toDateString() - defined in Carbon\Carbon. Format the instance as date.
- public DateTime toDateTime() - defined in Carbon\Carbon. Return native DateTime PHP object matching the current instance.
- public DateTimeImmutable toDateTimeImmutable() - defined in Carbon\Carbon. Return native toDateTimeImmutable PHP object matching the current instance.
- public string toDateTimeLocalString(string $unitPrecision='second') - defined in Carbon\Carbon. Format the instance as date and time T-separated with no timezone.
- public string toDateTimeString(string $unitPrecision='second') - defined in Carbon\Carbon. Format the instance as date and time.
- public string toDayDateTimeString() - defined in Carbon\Carbon. Format the instance with day, date and time.
- public string toFormattedDateString() - defined in Carbon\Carbon. Format the instance as a readable date.
- public null|string toISOString(bool $keepOffset=false) - defined in Carbon\Carbon. Return the ISO-8601 string (ex: 1977-04-22T06:00:00Z, if $keepOffset truthy, offset will be kept:.
- public CarbonImmutable toImmutable() - defined in Carbon\Carbon. Return a immutable copy of the instance.
- public string toIso8601String() - defined in Carbon\Carbon. Format the instance as ISO8601.
- public string toIso8601ZuluString(string $unitPrecision='second') - defined in Carbon\Carbon. Convert the instance to UTC and return as Zulu ISO8601.
- public null|string toJSON() - defined in Carbon\Carbon. Return the ISO-8601 string (ex: 1977-04-22T06:00:00Z) with UTC timezone.
- public Carbon toMutable() - defined in Carbon\Carbon. Return a mutable copy of the instance.
- public string toNow(int|array $syntax=NULL, bool $short=false, int $parts=1, int $options=NULL) - defined in Carbon\Carbon. Get the difference in a human readable format in the current locale from an other.
- public object toObject() - defined in Carbon\Carbon. Get default object representation.
- public CarbonPeriod toPeriod(DateTimeInterface|Carbon|CarbonImmutable|int|null $end=NULL, int|\DateInterval|string|null $interval=NULL, string|null $unit=NULL) - defined in Carbon\Carbon. Create a iterable CarbonPeriod object from current date to a given end date (and optional interval).
- public string toRfc1036String() - defined in Carbon\Carbon. Format the instance as RFC1036.
- public string toRfc1123String() - defined in Carbon\Carbon. Format the instance as RFC1123.
- public string toRfc2822String() - defined in Carbon\Carbon. Format the instance as RFC2822.
- public string toRfc3339String(bool $extended=false) - defined in Carbon\Carbon. Format the instance as RFC3339.
- public string toRfc7231String() - defined in Carbon\Carbon. Format the instance as RFC7231.
- public string toRfc822String() - defined in Carbon\Carbon. Format the instance as RFC822.
- public string toRfc850String() - defined in Carbon\Carbon. Format the instance as RFC850.
- public string toRssString() - defined in Carbon\Carbon. Format the instance as RSS.
- public string toString() - defined in Carbon\Carbon. Returns english human readable complete date string.
- public string toTimeString(string $unitPrecision='second') - defined in Carbon\Carbon. Format the instance as time.
- public string toW3cString() - defined in Carbon\Carbon. Format the instance as W3C.
- public static static today(DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance for today.
- public static static tomorrow(DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance for tomorrow.
- public string translate(string $key, array $parameters=array(), null $number=NULL, Symfony\Component\Translation\TranslatorInterface $translator=NULL, $altNumbers=false) - defined in Carbon\Carbon. Translate using translation string or callback available.
- public string translateNumber(int $number) - defined in Carbon\Carbon. Returns the alternative number for a given integer if available in the current locale.
- public static string translateTimeString(string $timeString, string|null $from=NULL, string|null $to=NULL, int $mode=31) - defined in Carbon\Carbon. Translate a time string from a locale to an other.
- public string translateTimeStringTo(string $timeString, string|null $to=NULL) - defined in Carbon\Carbon. Translate a time string from the current locale (
$date->locale()
) to an other. - public static string translateWith(Symfony\Component\Translation\TranslatorInterface $translator, string $key, array $parameters=array(), null $number=NULL) - defined in Carbon\Carbon. Translate using translation string or callback available.
- public string translatedFormat(string $format) - defined in Carbon\Carbon. Format as ->format() do (using date replacements patterns from http://php.net/manual/fr/function.date.php).
- public static|string tz(DateTimeZone|string $value=NULL) - defined in Carbon\Carbon. Set the timezone or returns the timezone name if no arguments passed.
- public int unix() - defined in Carbon\Carbon.
- public string until(Carbon|\DateTimeInterface|string|array|null $other=NULL, int|array $syntax=NULL, bool $short=false, int $parts=1, int $options=NULL) - defined in Carbon\Carbon.
- public static void useMonthsOverflow(bool $monthsOverflow=true) - defined in Carbon\Carbon.
- public static void useStrictMode(bool $strictModeEnabled=true) - defined in Carbon\Carbon.
- public static void useYearsOverflow(bool $yearsOverflow=true) - defined in Carbon\Carbon.
- public static utc() - defined in Carbon\Carbon. Set the instance's timezone to UTC.
- public int|static utcOffset(int|null $minuteOffset=NULL) - defined in Carbon\Carbon. Returns the minutes offset to UTC if no arguments passed, else set the timezone with given minutes shift passed.
- public float valueOf() - defined in Carbon\Carbon. Returns the milliseconds timestamps used amongst other by Date javascript objects.
- public int|static week(int|null $week=NULL, int|null $dayOfWeek=NULL, int|null $dayOfYear=NULL) - defined in Carbon\Carbon. Get/set the week number using given first day of week and first.
- public int|static weekYear(int|null $year=NULL, int|null $dayOfWeek=NULL, int|null $dayOfYear=NULL) - defined in Carbon\Carbon. Set/get the week number of year using given first day of week and first.
- public static|int weekday(int|null $value=NULL) - defined in Carbon\Carbon. Get/set the weekday from 0 (Sunday) to 6 (Saturday).
- public int weeksInYear(int|null $dayOfWeek=NULL, int|null $dayOfYear=NULL) - defined in Carbon\Carbon. Get the number of weeks of the current week-year using given first day of week and first.
- public static void withTestNow(Closure|static|string|false|null $testNow=NULL, Closure|null $callback=NULL) - defined in Carbon\Carbon. Temporarily sets a static date to be used within the callback.
- public static static yesterday(DateTimeZone|string|null $tz=NULL) - defined in Carbon\Carbon. Create a Carbon instance for yesterday.
Protected methods
Show inherited protected methods
Inherited protected methods
- protected void addExtraDebugInfos(&$infos) - defined in Carbon\Carbon.
- protected static mixed bindMacroContext(static|null $context, callable $callable) - defined in Carbon\Carbon. Stack a Carbon context from inside calls of self::this() and execute a given action.
- protected void callRoundMethod($method, $parameters) - defined in Carbon\Carbon.
- protected static static|null context() - defined in Carbon\Carbon. Return the current context from inside a macro callee or a null if static.
- protected void executeCallable($macro, $parameters=NULL) - defined in Carbon\Carbon.
- protected void executeCallableWithContext($macro, $parameters=NULL) - defined in Carbon\Carbon.
- protected static void executeStaticCallable($macro, $parameters=NULL) - defined in Carbon\Carbon.
- protected static void expectDateTime(mixed $date, string|array $other=array()) - defined in Carbon\Carbon. Throws an exception if the given object is not a DateTime and does not implement DateTimeInterface.
- protected static CarbonInterval fixDiffInterval(DateInterval $diff, bool $absolute) - defined in Carbon\Carbon.
- protected static void fixNegativeMicroseconds(CarbonInterval $diff) - defined in Carbon\Carbon.
- protected static void getGenericMacros() - defined in Carbon\Carbon.
- protected static LocaleAwareInterface|null getLocaleAwareTranslator(LocaleAwareInterface|null $translator=NULL) - defined in Carbon\Carbon. Throw an error if passed object is not LocaleAwareInterface.
- protected static Carbon\CarbonImmutable|\Carbon\Carbon|null getMockedTestNow(string|\DateTimeZone $tz) - defined in Carbon\Carbon. Get the mocked date passed in setTestNow() and if it's a Closure, execute it.
- protected static array getRangesByUnit() - defined in Carbon\Carbon. List of minimum and maximums for each unit.
- protected void getTranslatedFormByRegExp($baseKey, $keySuffix, $context, $subKey, $defaultValue) - defined in Carbon\Carbon.
- protected string|null getTranslatorLocale(null $translator=NULL) - defined in Carbon\Carbon. Get the locale of a given translator.
- protected static string|\DateTimeZone handleMockTimezone(string|\DateTimeZone $tz, Carbon\CarbonInterface &$testInstance) - defined in Carbon\Carbon. Return the given timezone and set it to the test instance if not null.
- protected static void mockConstructorParameters(&$time, &$tz) - defined in Carbon\Carbon.
- protected static resolveCarbon(Carbon|DateTimeInterface|string|null $date=NULL) - defined in Carbon\Carbon. Return the Carbon instance passed through, a now instance in the same timezone.
- protected void roundWith($precision, $function) - defined in Carbon\Carbon.
- protected static CarbonTimeZone|false safeCreateDateTimeZone(DateTimeZone|string|int|null $object, DateTimeZone|string|int|null $objectDump=NULL) - defined in Carbon\Carbon. Creates a DateTimeZone from a string, DateTimeZone or integer offset.
- protected static static this() - defined in Carbon\Carbon. Return the current context from inside a macro callee or a new one if static.
- protected static Symfony\Component\Translation\TranslatorInterface translator() - defined in Carbon\Carbon. Initialize the default translator instance if necessary.