You are here

protected property HijriFormatter::$units in Hijri 3.0.x

Same name and namespace in other branches
  1. 8.2 src/HijriFormatter.php \Drupal\hijri\HijriFormatter::units
  2. 1.0.x src/HijriFormatter.php \Drupal\hijri\HijriFormatter::units

Contains the different date interval units.

This array is keyed by strings representing the unit (e.g. '1 year|@count years') and with the amount of values of the unit in seconds.

Type: array

Overrides DateFormatter::$units

File

src/HijriFormatter.php, line 67

Class

HijriFormatter
Provides a service to handle Hijri date related functionality.

Namespace

Drupal\hijri

Code

protected $units = [
  '1 year|@count years' => 31536000,
  '1 month|@count months' => 2592000,
  '1 week|@count weeks' => 604800,
  '1 day|@count days' => 86400,
  '1 hour|@count hours' => 3600,
  '1 min|@count min' => 60,
  '1 sec|@count sec' => 1,
];