public static function Carbon::setToStringFormat in Persian Date for Drupal 8 8.4
Set the default format used when type juggling a Carbon instance to a string
Parameters
string $format:
1 call to Carbon::setToStringFormat()
- Carbon::resetToStringFormat in src/
Library/ Carbon/ Carbon.php - Reset the format used to the default when type juggling a Carbon instance to a string
File
- src/
Library/ Carbon/ Carbon.php, line 1220
Class
- Carbon
- A simple API extension for DateTime
Namespace
Drupal\persian_date\Library\CarbonCode
public static function setToStringFormat($format) {
static::$toStringFormat = $format;
}