public function Carbon::secondsSinceMidnight in Persian Date for Drupal 8 8.4
The number of seconds since midnight.
Return value
int
File
- src/
Library/ Carbon/ Carbon.php, line 2764
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public function secondsSinceMidnight() {
return $this
->diffInSeconds($this
->copy()
->startOfDay());
}