You are here

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

Set the instance's day

Parameters

int $value:

Return value

static

2 calls to Carbon::day()
Carbon::firstOfMonth in src/Library/Carbon/Carbon.php
Modify to the first occurrence of a given day of the week in the current month. If no dayOfWeek is provided, modify to the first day of the current month. Use the supplied constants to indicate the desired dayOfWeek, ex. static::MONDAY.
Carbon::lastOfMonth in src/Library/Carbon/Carbon.php
Modify to the last occurrence of a given day of the week in the current month. If no dayOfWeek is provided, modify to the last day of the current month. Use the supplied constants to indicate the desired dayOfWeek, ex. static::MONDAY.

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public function day($value) {
  $this->day = $value;
  return $this;
}