# Time Unit

use Domainrobot\Model\TimeUnitConstants;

TimeUnitConstants::MILLISECOND;
TimeUnitConstants::SECOND;
TimeUnitConstants::MINUTE;
TimeUnitConstants::HOUR;
TimeUnitConstants::DAY;
TimeUnitConstants::WEEK;
TimeUnitConstants::MONTH;
TimeUnitConstants::QUARTER;
TimeUnitConstants::YEAR;

// Example

new TimePeriod([
    'unit' => TimeUnitConstants::MONTH,
    'period' => 12
]);

Used in :