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


Top ↑

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.


Top ↑

Return Return

(int)


Top ↑

Source Source

File: packages/woocommerce-admin/src/API/Reports/TimeInterval.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.