# defender-security/6.3.0/lib/packages/Safe/generated/calendar.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 6.3.0. 28 lines.

- Page: https://pluginprobe.com/plugins/defender-security/6.3.0/code/lib/packages/Safe/generated/calendar.php
- Raw: https://pluginprobe.com/plugins/defender-security/6.3.0/raw/lib/packages/Safe/generated/calendar.php
- Modified: 2026-08-24T08:19:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/6.3.0/code/lib/packages/Safe/generated/calendar.php#L10-L20`.

```php
<?php

namespace WP_DEFENDER_VENDOR\Safe;

use WP_DEFENDER_VENDOR\Safe\Exceptions\CalendarException;

/**
 * This function will return a Unix timestamp corresponding to the
 * Julian Day given in jday or FALSE if
 * jday is outside of the allowed range. The time returned is
 * UTC.
 *
 * @param int $jday A julian day number between 2440588 and 106751993607888
 * on 64bit systems, or between 2440588 and 2465443 on 32bit systems.
 * @return int The unix timestamp for the start (midnight, not noon) of the given Julian day.
 * @throws CalendarException
 *
 */
function jdtounix(int $jday): int
{
    error_clear_last();
    $result = \jdtounix($jday);
    if ($result === false) {
        throw CalendarException::createFromPhpError();
    }
    return $result;
}

```
