TimeInterval::week_number( AutomatticWooCommerceAdminAPIReportsDateTime $datetime, int $first_day_of_week )
Returns ISO 8601 week number for the DateTime, if week starts on Monday, otherwise returns simple week number.
Description Description
See also See also
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