Usage_Reports::weekstamp()

weekstamp


Description Description

Will return an integer weekstamp like 202201 for the first week in 2022 and 202252 for the last one


Top ↑

Return Return

(void)


Source Source

File: src/core/classes/class-usage-reports.php

	public function weekstamp() {

		$year = gmdate( 'o' );
		$week = $this->leading_zeros( gmdate( 'W' ) );

		return absint( $year . $week );
	}