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.


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.