You are here

public static function Carbon::maxValue in Persian Date for Drupal 8 8.4

Create a Carbon instance for the greatest supported date.

Return value

static

File

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

Class

Carbon
A simple API extension for DateTime

Namespace

Drupal\persian_date\Library\Carbon

Code

public static function maxValue() {
  if (PHP_INT_SIZE === 4) {

    // 32 bit (and additionally Windows 64 bit)
    return static::createFromTimestamp(PHP_INT_MAX);
  }

  // 64 bit
  return static::create(9999, 12, 31, 23, 59, 59);
}