diff options
author | Andrew Dolgov <[email protected]> | 2021-02-26 19:16:17 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-26 19:16:17 +0300 |
commit | 3fd785654372d493c031d9b541ab33a881023a32 (patch) | |
tree | 0a76cb410217074378de3d7012b95754cd3c7e6f /vendor/thecodingmachine/safe/generated/calendar.php | |
parent | bc4475b6698f5a74e475674aa7af43253c459892 (diff) |
* switch to composer for qrcode and otp dependencies
* move most OTP-related stuff into userhelper
* remove old phpqrcode and otphp libraries
Diffstat (limited to 'vendor/thecodingmachine/safe/generated/calendar.php')
-rw-r--r-- | vendor/thecodingmachine/safe/generated/calendar.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/thecodingmachine/safe/generated/calendar.php b/vendor/thecodingmachine/safe/generated/calendar.php new file mode 100644 index 000000000..aae699923 --- /dev/null +++ b/vendor/thecodingmachine/safe/generated/calendar.php @@ -0,0 +1,27 @@ +<?php + +namespace Safe; + +use 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; +} |