Comparison
Trait Comparison.
Comparison utils and testers. All the following methods return booleans. nowWithSameTz
Depends on the following methods:
Table of Contents
Properties
- $endOfTime : bool
- $startOfTime : bool
Methods
- between() : bool
- Determines if the instance is between two others.
- betweenExcluded() : bool
- Determines if the instance is between two others, bounds excluded.
- betweenIncluded() : bool
- Determines if the instance is between two others, bounds included.
- canBeCreatedFromFormat() : bool
- Checks if the (date)time string is in a given format and valid to create a new instance.
- copy() : void
- eq() : bool
- Determines if the instance is equal to another
- equalTo() : bool
- Determines if the instance is equal to another
- greaterThan() : bool
- Determines if the instance is greater (after) than another
- greaterThanOrEqualTo() : bool
- Determines if the instance is greater (after) than or equal to another
- gt() : bool
- Determines if the instance is greater (after) than another
- gte() : bool
- Determines if the instance is greater (after) than or equal to another
- hasFormat() : bool
- Checks if the (date)time string is in a given format.
- hasFormatWithModifiers() : bool
- Checks if the (date)time string is in a given format.
- is() : bool
- Returns true if the current date matches the given string.
- isAfter() : bool
- Determines if the instance is greater (after) than another
- isBefore() : bool
- Determines if the instance is less (before) than another
- isBetween() : bool
- Determines if the instance is between two others
- isBirthday() : bool
- Check if its the birthday. Compares the date/month values of the two dates.
- isCurrentUnit() : bool
- Determines if the instance is in the current unit given.
- isDayOfWeek() : bool
- Checks if this day is a specific day of the week.
- isEndOfCentury() : bool
- Determines if the instance is end of century (last day by default but interval can be customized).
- isEndOfDay() : bool
- Check if the instance is end of day.
- isEndOfDecade() : bool
- Determines if the instance is end of decade (last day by default but interval can be customized).
- isEndOfHour() : bool
- Determines if the instance is end of hour (last microsecond by default but interval can be customized).
- isEndOfMillennium() : bool
- Determines if the instance is end of millennium (last day by default but interval can be customized).
- isEndOfMillisecond() : bool
- Determines if the instance is end of millisecond (last microsecond by default but interval can be customized).
- isEndOfMinute() : bool
- Determines if the instance is end of minute (last microsecond by default but interval can be customized).
- isEndOfMonth() : bool
- Determines if the instance is end of month (last day by default but interval can be customized).
- isEndOfQuarter() : bool
- Determines if the instance is end of quarter (last day by default but interval can be customized).
- isEndOfSecond() : bool
- Determines if the instance is end of second (last microsecond by default but interval can be customized).
- isEndOfTime() : bool
- Returns true if the date was created using CarbonImmutable::endOfTime()
- isEndOfUnit() : bool
- Check if the instance is end of a given unit (tolerating a given interval).
- isEndOfWeek() : bool
- Determines if the instance is end of week (last day by default but interval can be customized).
- isEndOfYear() : bool
- Determines if the instance is end of year (last day by default but interval can be customized).
- isFuture() : bool
- Determines if the instance is in the future, ie. greater (after) than now.
- isLastOfMonth() : bool
- Check if today is the last day of the Month
- isLeapYear() : bool
- Determines if the instance is a leap year.
- isLongIsoYear() : bool
- Determines if the instance is a long year (using ISO 8601 year).
- isLongYear() : bool
- Determines if the instance is a long year (using calendar year).
- isMidday() : bool
- Check if the instance is midday.
- isMidnight() : bool
- Check if the instance is start of day / midnight.
- isPast() : bool
- Determines if the instance is in the past, ie. less (before) than now.
- isSameAs() : bool
- Compares the formatted values of the two dates.
- isSameMonth() : bool
- Checks if the passed in date is in the same month as the instance´s month.
- isSameQuarter() : bool
- Checks if the passed in date is in the same quarter as the instance quarter (and year if needed).
- isSameUnit() : bool
- Determines if the instance is in the current unit given.
- isStartOfCentury() : bool
- Determines if the instance is start of century (first day by default but interval can be customized).
- isStartOfDay() : bool
- Check if the instance is start of day / midnight.
- isStartOfDecade() : bool
- Determines if the instance is start of decade (first day by default but interval can be customized).
- isStartOfHour() : bool
- Determines if the instance is start of hour (first microsecond by default but interval can be customized).
- isStartOfMillennium() : bool
- Determines if the instance is start of millennium (first day by default but interval can be customized).
- isStartOfMillisecond() : bool
- Determines if the instance is start of millisecond (first microsecond by default but interval can be customized).
- isStartOfMinute() : bool
- Determines if the instance is start of minute (first microsecond by default but interval can be customized).
- isStartOfMonth() : bool
- Determines if the instance is start of month (first day by default but interval can be customized).
- isStartOfQuarter() : bool
- Determines if the instance is start of quarter (first day by default but interval can be customized).
- isStartOfSecond() : bool
- Determines if the instance is start of second (first microsecond by default but interval can be customized).
- isStartOfTime() : bool
- Returns true if the date was created using CarbonImmutable::startOfTime()
- isStartOfUnit() : bool
- Check if the instance is start of a given unit (tolerating a given interval).
- isStartOfWeek() : bool
- Determines if the instance is start of week (first day by default but interval can be customized).
- isStartOfYear() : bool
- Determines if the instance is start of year (first day by default but interval can be customized).
- isToday() : bool
- Determines if the instance is today.
- isTomorrow() : bool
- Determines if the instance is tomorrow.
- isWeekday() : bool
- Determines if the instance is a weekday.
- isWeekend() : bool
- Determines if the instance is a weekend day.
- isYesterday() : bool
- Determines if the instance is yesterday.
- lessThan() : bool
- Determines if the instance is less (before) than another
- lessThanOrEqualTo() : bool
- Determines if the instance is less (before) or equal to another
- lt() : bool
- Determines if the instance is less (before) than another
- lte() : bool
- Determines if the instance is less (before) or equal to another
- ne() : bool
- Determines if the instance is not equal to another
- notEqualTo() : bool
- Determines if the instance is not equal to another
- nowWithSameTz() : void
- resolveCarbon() : void
- tomorrow() : static
- yesterday() : static
Properties
$endOfTime
protected
bool
$endOfTime
= false
$startOfTime
protected
bool
$startOfTime
= false
Methods
between()
Determines if the instance is between two others.
public
between(DateTimeInterface|string $date1, DateTimeInterface|string $date2[, bool $equal = true ]) : bool
The third argument allow you to specify if bounds are included or not (true by default) but for when you including/excluding bounds may produce different results in your application, we recommend to use the explicit methods ->betweenIncluded() or ->betweenExcluded() instead.
Parameters
- $date1 : DateTimeInterface|string
- $date2 : DateTimeInterface|string
- $equal : bool = true
-
Indicates if an equal to comparison should be done
Tags
Return values
boolbetweenExcluded()
Determines if the instance is between two others, bounds excluded.
public
betweenExcluded(DateTimeInterface|string $date1, DateTimeInterface|string $date2) : bool
Parameters
- $date1 : DateTimeInterface|string
- $date2 : DateTimeInterface|string
Tags
Return values
boolbetweenIncluded()
Determines if the instance is between two others, bounds included.
public
betweenIncluded(DateTimeInterface|string $date1, DateTimeInterface|string $date2) : bool
Parameters
- $date1 : DateTimeInterface|string
- $date2 : DateTimeInterface|string
Tags
Return values
boolcanBeCreatedFromFormat()
Checks if the (date)time string is in a given format and valid to create a new instance.
public
static canBeCreatedFromFormat(string|null $date, string $format) : bool
Parameters
- $date : string|null
- $format : string
Tags
Return values
boolcopy()
public
static copy() : void
eq()
Determines if the instance is equal to another
public
eq(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolequalTo()
Determines if the instance is equal to another
public
equalTo(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolgreaterThan()
Determines if the instance is greater (after) than another
public
greaterThan(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolgreaterThanOrEqualTo()
Determines if the instance is greater (after) than or equal to another
public
greaterThanOrEqualTo(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolgt()
Determines if the instance is greater (after) than another
public
gt(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolgte()
Determines if the instance is greater (after) than or equal to another
public
gte(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolhasFormat()
Checks if the (date)time string is in a given format.
public
static hasFormat(string $date, string $format) : bool
Parameters
- $date : string
- $format : string
Tags
Return values
boolhasFormatWithModifiers()
Checks if the (date)time string is in a given format.
public
static hasFormatWithModifiers(string $date, string $format) : bool
Parameters
- $date : string
- $format : string
Tags
Return values
boolis()
Returns true if the current date matches the given string.
public
is(string $tester) : bool
Parameters
- $tester : string
-
day name, month name, hour, date, etc. as string
Tags
Return values
boolisAfter()
Determines if the instance is greater (after) than another
public
isAfter(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolisBefore()
Determines if the instance is less (before) than another
public
isBefore(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolisBetween()
Determines if the instance is between two others
public
isBetween(DateTimeInterface|string $date1, DateTimeInterface|string $date2[, bool $equal = true ]) : bool
Parameters
- $date1 : DateTimeInterface|string
- $date2 : DateTimeInterface|string
- $equal : bool = true
-
Indicates if an equal to comparison should be done
Tags
Return values
boolisBirthday()
Check if its the birthday. Compares the date/month values of the two dates.
public
isBirthday([DateTimeInterface|string|null $date = null ]) : bool
Parameters
- $date : DateTimeInterface|string|null = null
-
The instance to compare with or null to use current day.
Tags
Return values
boolisCurrentUnit()
Determines if the instance is in the current unit given.
public
isCurrentUnit(string $unit) : bool
Parameters
- $unit : string
-
The unit to test.
Tags
Return values
boolisDayOfWeek()
Checks if this day is a specific day of the week.
public
isDayOfWeek(int|string $dayOfWeek) : bool
Parameters
- $dayOfWeek : int|string
Tags
Return values
boolisEndOfCentury()
Determines if the instance is end of century (last day by default but interval can be customized).
public
isEndOfCentury([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisEndOfDay()
Check if the instance is end of day.
public
isEndOfDay([bool $checkMicroseconds = false ][, Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $checkMicroseconds : bool = false
-
check time at microseconds precision
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
-
if an interval is specified it will be used as precision for instance with "15 minutes", it checks if current date-time is in the last 15 minutes of the day, with Unit::Hour, it checks if it's in the last hour of the day.
Tags
Return values
boolisEndOfDecade()
Determines if the instance is end of decade (last day by default but interval can be customized).
public
isEndOfDecade([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisEndOfHour()
Determines if the instance is end of hour (last microsecond by default but interval can be customized).
public
isEndOfHour([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisEndOfMillennium()
Determines if the instance is end of millennium (last day by default but interval can be customized).
public
isEndOfMillennium([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisEndOfMillisecond()
Determines if the instance is end of millisecond (last microsecond by default but interval can be customized).
public
isEndOfMillisecond([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisEndOfMinute()
Determines if the instance is end of minute (last microsecond by default but interval can be customized).
public
isEndOfMinute([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisEndOfMonth()
Determines if the instance is end of month (last day by default but interval can be customized).
public
isEndOfMonth([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisEndOfQuarter()
Determines if the instance is end of quarter (last day by default but interval can be customized).
public
isEndOfQuarter([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisEndOfSecond()
Determines if the instance is end of second (last microsecond by default but interval can be customized).
public
isEndOfSecond([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisEndOfTime()
Returns true if the date was created using CarbonImmutable::endOfTime()
public
isEndOfTime() : bool
Return values
boolisEndOfUnit()
Check if the instance is end of a given unit (tolerating a given interval).
public
isEndOfUnit(Unit $unit[, Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ], mixed ...$params) : bool
Parameters
- $unit : Unit
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
- $params : mixed
Tags
Return values
boolisEndOfWeek()
Determines if the instance is end of week (last day by default but interval can be customized).
public
isEndOfWeek([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ][, WeekDay|int|null $weekEndsAt = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
- $weekEndsAt : WeekDay|int|null = null
Tags
Return values
boolisEndOfYear()
Determines if the instance is end of year (last day by default but interval can be customized).
public
isEndOfYear([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisFuture()
Determines if the instance is in the future, ie. greater (after) than now.
public
isFuture() : bool
Tags
Return values
boolisLastOfMonth()
Check if today is the last day of the Month
public
isLastOfMonth() : bool
Tags
Return values
boolisLeapYear()
Determines if the instance is a leap year.
public
isLeapYear() : bool
Tags
Return values
boolisLongIsoYear()
Determines if the instance is a long year (using ISO 8601 year).
public
isLongIsoYear() : bool
Tags
Return values
boolisLongYear()
Determines if the instance is a long year (using calendar year).
public
isLongYear() : bool
⚠️ This method completely ignores month and day to use the numeric year number,
it's not correct if the exact date matters. For instance as 2019-12-30
is already
in the first week of the 2020 year, if you want to know from this date if ISO week
year 2020 is a long year, use isLongIsoYear
instead.
Tags
Return values
boolisMidday()
Check if the instance is midday.
public
isMidday() : bool
Tags
Return values
boolisMidnight()
Check if the instance is start of day / midnight.
public
isMidnight() : bool
Tags
Return values
boolisPast()
Determines if the instance is in the past, ie. less (before) than now.
public
isPast() : bool
Tags
Return values
boolisSameAs()
Compares the formatted values of the two dates.
public
isSameAs(string $format, DateTimeInterface|string $date) : bool
Parameters
- $format : string
-
date formats to compare.
- $date : DateTimeInterface|string
-
instance to compare with or null to use current day.
Tags
Return values
boolisSameMonth()
Checks if the passed in date is in the same month as the instance´s month.
public
isSameMonth(DateTimeInterface|string $date[, bool $ofSameYear = true ]) : bool
Parameters
- $date : DateTimeInterface|string
-
The instance to compare with or null to use the current date.
- $ofSameYear : bool = true
-
Check if it is the same month in the same year.
Tags
Return values
boolisSameQuarter()
Checks if the passed in date is in the same quarter as the instance quarter (and year if needed).
public
isSameQuarter(DateTimeInterface|string $date[, bool $ofSameYear = true ]) : bool
Parameters
- $date : DateTimeInterface|string
-
The instance to compare with or null to use current day.
- $ofSameYear : bool = true
-
Check if it is the same month in the same year.
Tags
Return values
boolisSameUnit()
Determines if the instance is in the current unit given.
public
isSameUnit(string $unit, DateTimeInterface|string $date) : bool
Parameters
- $unit : string
-
singular unit string
- $date : DateTimeInterface|string
-
instance to compare with or null to use current day.
Tags
Return values
boolisStartOfCentury()
Determines if the instance is start of century (first day by default but interval can be customized).
public
isStartOfCentury([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisStartOfDay()
Check if the instance is start of day / midnight.
public
isStartOfDay([bool $checkMicroseconds = false ][, Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $checkMicroseconds : bool = false
-
check time at microseconds precision
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
-
if an interval is specified it will be used as precision for instance with "15 minutes", it checks if current date-time is in the last 15 minutes of the day, with Unit::Hour, it checks if it's in the last hour of the day.
Tags
Return values
boolisStartOfDecade()
Determines if the instance is start of decade (first day by default but interval can be customized).
public
isStartOfDecade([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisStartOfHour()
Determines if the instance is start of hour (first microsecond by default but interval can be customized).
public
isStartOfHour([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisStartOfMillennium()
Determines if the instance is start of millennium (first day by default but interval can be customized).
public
isStartOfMillennium([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisStartOfMillisecond()
Determines if the instance is start of millisecond (first microsecond by default but interval can be customized).
public
isStartOfMillisecond([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisStartOfMinute()
Determines if the instance is start of minute (first microsecond by default but interval can be customized).
public
isStartOfMinute([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisStartOfMonth()
Determines if the instance is start of month (first day by default but interval can be customized).
public
isStartOfMonth([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisStartOfQuarter()
Determines if the instance is start of quarter (first day by default but interval can be customized).
public
isStartOfQuarter([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisStartOfSecond()
Determines if the instance is start of second (first microsecond by default but interval can be customized).
public
isStartOfSecond([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisStartOfTime()
Returns true if the date was created using CarbonImmutable::startOfTime()
public
isStartOfTime() : bool
Return values
boolisStartOfUnit()
Check if the instance is start of a given unit (tolerating a given interval).
public
isStartOfUnit(Unit $unit[, Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ], mixed ...$params) : bool
Parameters
- $unit : Unit
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
- $params : mixed
Tags
Return values
boolisStartOfWeek()
Determines if the instance is start of week (first day by default but interval can be customized).
public
isStartOfWeek([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ][, WeekDay|int|null $weekStartsAt = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
- $weekStartsAt : WeekDay|int|null = null
Tags
Return values
boolisStartOfYear()
Determines if the instance is start of year (first day by default but interval can be customized).
public
isStartOfYear([Unit|DateInterval|Closure|CarbonConverterInterface|string|null $interval = null ]) : bool
Parameters
- $interval : Unit|DateInterval|Closure|CarbonConverterInterface|string|null = null
Return values
boolisToday()
Determines if the instance is today.
public
isToday() : bool
Tags
Return values
boolisTomorrow()
Determines if the instance is tomorrow.
public
isTomorrow() : bool
Tags
Return values
boolisWeekday()
Determines if the instance is a weekday.
public
isWeekday() : bool
Tags
Return values
boolisWeekend()
Determines if the instance is a weekend day.
public
isWeekend() : bool
Tags
Return values
boolisYesterday()
Determines if the instance is yesterday.
public
isYesterday() : bool
Tags
Return values
boollessThan()
Determines if the instance is less (before) than another
public
lessThan(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boollessThanOrEqualTo()
Determines if the instance is less (before) or equal to another
public
lessThanOrEqualTo(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boollt()
Determines if the instance is less (before) than another
public
lt(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boollte()
Determines if the instance is less (before) or equal to another
public
lte(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolne()
Determines if the instance is not equal to another
public
ne(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolnotEqualTo()
Determines if the instance is not equal to another
public
notEqualTo(DateTimeInterface|string $date) : bool
Parameters
- $date : DateTimeInterface|string
Tags
Return values
boolnowWithSameTz()
public
static nowWithSameTz() : void
resolveCarbon()
public
static resolveCarbon(mixed $date) : void
Parameters
- $date : mixed
tomorrow()
public
static tomorrow(mixed $timezone) : static
Parameters
- $timezone : mixed
Return values
staticyesterday()
public
static yesterday(mixed $timezone) : static
Parameters
- $timezone : mixed