public function Carbon::isPast in Persian Date for Drupal 8 8.4
Determines if the instance is in the past, ie. less (before) than now
Return value
bool
File
- src/
Library/ Carbon/ Carbon.php, line 1786
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function isPast() {
return $this
->lt(static::now($this
->getTimezone()));
}