TimeInterval::simple_week_number( AutomatticWooCommerceAdminAPIReportsDateTime $datetime, int $first_day_of_week )
Returns simple week number for the DateTime, for week starting on $first_day_of_week.
Description Description
The first week of the year is considered to be the week containing January 1. The second week starts on the next $first_day_of_week.
Parameters Parameters
- $datetime
-
(Required) Local date for which the week number is to be calculated.
- $first_day_of_week
-
(Required) 0 for Sunday to 6 for Saturday.
Return Return
(int)
Source Source
File: packages/woocommerce-admin/src/API/Reports/TimeInterval.php