tribe_is_site_using_24_hour_time()

Handy function for easily detecting if this site’s using the 24-hour time format.


Return

(boolean)


Top ↑

Source

File: src/functions/template-tags/date.php

	function tribe_is_site_using_24_hour_time() {
		$time_format = get_option( 'time_format' );
		return strpos( $time_format, 'H' ) !== false;
	}

Top ↑

Changelog

Changelog
Version Description
4.7.1 Introduced.