public static function Carbon::now in Persian Date for Drupal 8 8.4
Get a Carbon instance for the current date and time.
Parameters
\DateTimeZone|string|null $tz:
Return value
static
13 calls to Carbon::now()
- Carbon::average in src/
Library/ Carbon/ Carbon.php - Modify the current instance to the average of a given instance (default now) and the current instance.
- Carbon::diffFiltered in src/
Library/ Carbon/ Carbon.php - Get the difference by the given interval using a filter closure
- Carbon::diffForHumans in src/
Library/ Carbon/ Carbon.php - Get the difference in a human readable format in the current locale.
- Carbon::diffInDays in src/
Library/ Carbon/ Carbon.php - Get the difference in days
- Carbon::diffInMonths in src/
Library/ Carbon/ Carbon.php - Get the difference in months
File
- src/
Library/ Carbon/ Carbon.php, line 334
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public static function now($tz = null) {
return new static(null, $tz);
}