trait Week
Trait Week.
week and ISO week number, year and count in year.
Depends on the following properties:
Properties
int | $daysInYear | ||
int | $dayOfWeek | ||
int | $dayOfYear | ||
int | $year | Depends on the following methods: |
Methods
Set/get the week number of year using given first day of week and first day of year included in the first week. Or use ISO format if no settings given.
Set/get the week number of year using given first day of week and first day of year included in the first week. Or use US format if no settings given (Sunday / Jan 6).
Get the number of weeks of the current week-year using given first day of week and first day of year included in the first week. Or use ISO format if no settings given.
Get the number of weeks of the current week-year using given first day of week and first day of year included in the first week. Or use US format if no settings given (Sunday / Jan 6).
Get/set the week number using given first day of week and first day of year included in the first week. Or use US format if no settings given (Sunday / Jan 6).
Get/set the week number using given first day of week and first day of year included in the first week. Or use ISO format if no settings given.
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line50
int|Week
isoWeekYear(int|null$year =null,int|null$dayOfWeek =null,int|null$dayOfYear =null)
Set/get the week number of year using given first day of week and first day of year included in the first week. Or use ISO format if no settings given.
at line70
int|Week
weekYear(int|null$year =null,int|null$dayOfWeek =null,int|null$dayOfYear =null)
Set/get the week number of year using given first day of week and first day of year included in the first week. Or use US format if no settings given (Sunday / Jan 6).
at line132
int
isoWeeksInYear(int|null$dayOfWeek =null,int|null$dayOfYear =null)
Get the number of weeks of the current week-year using given first day of week and first day of year included in the first week. Or use ISO format if no settings given.
at line150
int
weeksInYear(int|null$dayOfWeek =null,int|null$dayOfYear =null)
Get the number of weeks of the current week-year using given first day of week and first day of year included in the first week. Or use US format if no settings given (Sunday / Jan 6).
at line180
int|Week
week(int|null$week =null,int|null$dayOfWeek =null,int|null$dayOfYear =null)
Get/set the week number using given first day of week and first day of year included in the first week. Or use US format if no settings given (Sunday / Jan 6).
at line211
int|Week
isoWeek(int|null$week =null,int|null$dayOfWeek =null,int|null$dayOfYear =null)
Get/set the week number using given first day of week and first day of year included in the first week. Or use ISO format if no settings given.