Usage_Reports::week_passed_since_last_report( $hourstamp )

week_passed


Description Description

An hourstamp has a format of 202233417 Where 2022 is the year 33 is the week number in that year 4 stands for Thursday 17 stands for hours, or 5PM

Therefore, each week adds 1000 to the hourstamp


Top ↑

Return Return

(void)


Source Source

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

	public function week_passed_since_last_report( $hourstamp ) {

		if ( $this->current_hourstamp - $hourstamp >= 1000 ) {
			return true;
		}

		return false;

	}