Server IP : 104.21.38.3 / Your IP : 172.71.81.89 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/perl5/Date/ |
Upload File : |
############################################################################### ## ## ## Copyright (c) 1995 - 2015 by Steffen Beyer. ## ## All rights reserved. ## ## ## ## This package is free software; you can redistribute it ## ## and/or modify it under the same terms as Perl itself. ## ## ## ############################################################################### package Date::Calc; use strict; use vars qw($XS_OK $XS_DISABLE @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $VERSION); BEGIN # Re-export imports from Date::Calc::XS or Date::Calc::PP: { require Exporter; @ISA = qw(Exporter); $XS_OK = 0; unless ($XS_DISABLE and $XS_DISABLE) # prevent warning "used only once" { eval { require Date::Calc::XS; @EXPORT = (@Date::Calc::XS::EXPORT); @EXPORT_OK = (@Date::Calc::XS::EXPORT_OK); %EXPORT_TAGS = (all => [@EXPORT_OK]); Date::Calc::XS->import(@EXPORT,@EXPORT_OK); }; if ($@) { die $@ unless ($@ =~ /^Can't locate .*? at /); } else { $XS_OK = 1; } } unless ($XS_OK) { require Date::Calc::PP; @EXPORT = (@Date::Calc::PP::EXPORT); @EXPORT_OK = (@Date::Calc::PP::EXPORT_OK); %EXPORT_TAGS = (all => [@EXPORT_OK]); Date::Calc::PP->import(@EXPORT,@EXPORT_OK); } } ################################################## ## ## ## "Version()" is available but not exported ## ## in order to avoid possible name clashes. ## ## Call with "Date::Calc::Version()" instead! ## ## ## ################################################## $VERSION = '6.4'; sub Version { return $VERSION; } 1; __END__