You are here

protected static property MarkdownBenchmark::$units in Markdown 3.0.x

Contains the different date interval units.

This array is keyed by strings representing the unit (e.g. '1y|@county') and with the amount of values of the unit in milliseconds.

Type: array

File

src/MarkdownBenchmark.php, line 32

Class

MarkdownBenchmark
Class MarkdownBenchmark.

Namespace

Drupal\markdown

Code

protected static $units = [
  'y' => 31536000000,
  'mo' => 2592000000,
  'w' => 604800000,
  'd' => 86400000,
  'h' => 3600000,
  'm' => 60000,
  's' => 1000,
  'ms' => 0,
];