{"id":18766337,"url":"https://github.com/navarr/specific-time","last_synced_at":"2025-06-18T07:37:47.347Z","repository":{"id":45397746,"uuid":"400881996","full_name":"navarr/specific-time","owner":"navarr","description":"An implementation of PSR-20 providing a clock that stands still in time","archived":false,"fork":false,"pushed_at":"2022-11-26T18:52:54.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-29T06:22:24.133Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/navarr.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-08-28T20:13:42.000Z","updated_at":"2023-11-18T22:46:46.000Z","dependencies_parsed_at":"2023-01-23T03:00:58.409Z","dependency_job_id":null,"html_url":"https://github.com/navarr/specific-time","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Fspecific-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Fspecific-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Fspecific-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navarr%2Fspecific-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navarr","download_url":"https://codeload.github.com/navarr/specific-time/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239669179,"owners_count":19677689,"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":[],"created_at":"2024-11-07T18:40:19.888Z","updated_at":"2025-02-19T13:41:31.346Z","avatar_url":"https://github.com/navarr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Specific Time (PSR-20)\n[![Latest Stable Version](http://poser.pugx.org/navarr/specific-time/v)](https://packagist.org/packages/navarr/specific-time)\n[![Total Downloads](http://poser.pugx.org/navarr/specific-time/downloads)](https://packagist.org/packages/navarr/specific-time)\n[![Latest Unstable Version](http://poser.pugx.org/navarr/specific-time/v/unstable)](https://packagist.org/packages/navarr/specific-time)\n[![License](http://poser.pugx.org/navarr/specific-time/license)](https://packagist.org/packages/navarr/specific-time)  \n![Tests](https://github.com/navarr/specific-time/actions/workflows/commit.yml/badge.svg)\n![Code Coverage](https://codecov.io/gh/navarr/specific-time/branch/main/graph/badge.svg?token=BHTKOZZDR3)\n[![Mutation score](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fnavarr%2Fspecific-time%2Fmain)](https://dashboard.stryker-mutator.io/reports/github.com/navarr/specific-time/main)\n\nThis is an implementation of PSR-20 that provides a constant time, no matter how many times `-\u003enow()` is called on the object.\n\n## Installation\n\n    composer require navarr/specific-time:^1\n\n## Usage\n\n```php\nuse DateTimeImmutable;\nuse Navarr\\SpecificTime\\SpecificTime;\n\n// ...\n\n$date = new DateTimeImmutable('2021-02-20');\n$clock = new SpecificTime($date);\n\n// 2021-02-20\necho $clock-\u003enow()-\u003eformat('Y-m-d');\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavarr%2Fspecific-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavarr%2Fspecific-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavarr%2Fspecific-time/lists"}