Tribe__Date_Utils::is_weekend( $curdate )
Returns true if the timestamp is a weekend.
Contents
Parameters
- $curDate
-
(int) (Required) A timestamp.
Return
(bool) If the timestamp is a weekend.
Source
File: src/Tribe/Date_Utils.php
public static function is_weekend( $curdate ) { return in_array( date( 'N', $curdate ), array( 6, 7 ) ); }