{"id":16671348,"url":"https://github.com/bluefeet/php-datetime","last_synced_at":"2025-10-08T03:29:38.408Z","repository":{"id":598423,"uuid":"233956","full_name":"bluefeet/PHP-DateTime","owner":"bluefeet","description":"Clone of PHP's date and time functions.","archived":false,"fork":false,"pushed_at":"2023-06-07T19:06:10.000Z","size":43,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-19T17:36:23.414Z","etag":null,"topics":["cpan","perl5"],"latest_commit_sha":null,"homepage":"https://metacpan.org/pod/PHP::DateTime","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"gin-gonic/gin","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bluefeet.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-06-23T03:01:30.000Z","updated_at":"2023-06-06T16:30:13.000Z","dependencies_parsed_at":"2023-07-05T15:02:04.930Z","dependency_job_id":null,"html_url":"https://github.com/bluefeet/PHP-DateTime","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"f2f7d1928cec5a19532359073688df56294930c9"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluefeet%2FPHP-DateTime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluefeet%2FPHP-DateTime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluefeet%2FPHP-DateTime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bluefeet%2FPHP-DateTime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bluefeet","download_url":"https://codeload.github.com/bluefeet/PHP-DateTime/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243318748,"owners_count":20272137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpan","perl5"],"created_at":"2024-10-12T11:44:11.135Z","updated_at":"2025-10-08T03:29:33.376Z","avatar_url":"https://github.com/bluefeet.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nPHP::DateTime - Clone of PHP's date and time functions.\n\n# SYNOPSIS\n\n```perl\nuse PHP::DateTime;\n\nif( checkdate($month,$day,$year) ){ print 'The date is good.'; }\n\nprint date( $format, $time );\nprint date( $format ); # Defaults to the current time.\n\n@d = getdate(); # A list at the current time.\n@d = getdate($time); # A list at the specified time.\n$d = getdate($time); # An array ref at the specified time.\n\nmy @g = gettimeofday(); # A list.\nmy $g = gettimeofday(); # An array ref.\n\nmy $then = mktime( $hour, $min, $sec, $month, $day, $year );\n```\n\n# DESCRIPTION\n\nDuplicates some of PHP's date and time functions.  Why?  I can't remember. \nIt should be useful if you are trying to integrate your perl app with a php app. \nMuch like PHP this module gratuitously exports all its functions upon a use(). \nNeat, eh?\n\n# METHODS\n\nAll of these methods should match PHP's methods exactly.\n\n```\n- Months are 1-12.\n- Days are 1-31.\n- Years are in four digit format (1997, not 97).\n```\n\n## checkdate\n\n```\nif( checkdate($month,$day,$year) ){ print 'The date is good.'; }\n```\n\n[http://php.net/manual/en/function.checkdate.php](http://php.net/manual/en/function.checkdate.php)\n\n## date\n\n```\nprint date( $format, $time );\nprint date( $format ); # Defaults to the current time.\n```\n\n[http://php.net/manual/en/function.date.php](http://php.net/manual/en/function.date.php)\n\n## getdate\n\n```\n@d = getdate(); # A list at the current time.\n@d = getdate($time); # A list at the specified time.\n$d = getdate($time); # An array ref at the specified time.\n```\n\n[http://php.net/manual/en/function.getdate.php](http://php.net/manual/en/function.getdate.php)\n\n## gettimeofday\n\n```perl\nmy %g = gettimeofday(); # A hash.\nmy $g = gettimeofday(); # An hash ref.\n```\n\n[http://php.net/manual/en/function.gettimeofday.php](http://php.net/manual/en/function.gettimeofday.php)\n\n## mktime\n\n```perl\nmy $then = mktime( $hour, $min, $sec, $month, $day, $year );\n```\n\n[http://php.net/manual/en/function.mktime.php](http://php.net/manual/en/function.mktime.php)\n\n# SEE ALSO\n\n[http://php.net/manual/en/ref.datetime.php](http://php.net/manual/en/ref.datetime.php)\n\n# AUTHOR\n\n```\nAran Clary Deltac \u003cbluefeet@gmail.com\u003e\n```\n\n# LICENSE\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluefeet%2Fphp-datetime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluefeet%2Fphp-datetime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluefeet%2Fphp-datetime/lists"}