# 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 :
- certificate (opens new window)->create (opens new window)(Certificate $certificate)