You are here

public function Carbon::subDay in Persian Date for Drupal 8 8.4

Remove a day from the instance

Parameters

int $value:

Return value

static

1 call to Carbon::subDay()
Carbon::startOfWeek in src/Library/Carbon/Carbon.php
Resets the date to the first day of week (defined in $weekStartsAt) and the time to 00:00:00

File

src/Library/Carbon/Carbon.php, line 2299

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function subDay($value = 1) {
  return $this
    ->subDays($value);
}