Usage_Reports::hourstamp()

hourstamp


Description Description

Will return an integer hourstamp like 202201307 for 7 am on Wednesday of the first week in 2022 or 2022520522 for 10PM Friday, last week of 2022


Top ↑

Return Return

(void)


Source Source

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

	public function hourstamp() {

		$day  = gmdate( 'N' );
		$hour = gmdate( 'H' );

		return absint( $this->weekstamp() . $day . $hour );
	}