Files
kulakpos_web/vendor/thecodingmachine/safe/generated/8.1/calendar.php

26 lines
472 B
PHP
Raw Normal View History

2026-03-30 14:54:57 +07:00
<?php
namespace Safe;
use Safe\Exceptions\CalendarException;
/**
2026-04-18 20:32:18 +07:00
* @param int|null $timestamp
* @return int
2026-03-30 14:54:57 +07:00
* @throws CalendarException
*
*/
function unixtojd(?int $timestamp = null): int
{
error_clear_last();
if ($timestamp !== null) {
$safeResult = \unixtojd($timestamp);
} else {
$safeResult = \unixtojd();
}
if ($safeResult === false) {
throw CalendarException::createFromPhpError();
}
return $safeResult;
}