{"id":24565962,"url":"https://github.com/steffenbrand/in-time","last_synced_at":"2025-04-22T10:36:11.858Z","repository":{"id":57059467,"uuid":"95654519","full_name":"steffenbrand/in-time","owner":"steffenbrand","description":"Helper to convert years, days, hours, minutes, seconds and milliseconds to smaller time units.","archived":false,"fork":false,"pushed_at":"2018-03-29T09:02:20.000Z","size":11,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-13T09:42:24.156Z","etag":null,"topics":["days","milliseconds","minutes","months","seconds","time","time-conversion","weeks","years"],"latest_commit_sha":null,"homepage":"https://github.com/steffenbrand/in-time","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steffenbrand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-28T09:52:03.000Z","updated_at":"2020-08-30T09:43:33.000Z","dependencies_parsed_at":"2022-08-24T14:53:27.915Z","dependency_job_id":null,"html_url":"https://github.com/steffenbrand/in-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/steffenbrand%2Fin-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffenbrand%2Fin-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffenbrand%2Fin-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steffenbrand%2Fin-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steffenbrand","download_url":"https://codeload.github.com/steffenbrand/in-time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235279191,"owners_count":18964221,"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":["days","milliseconds","minutes","months","seconds","time","time-conversion","weeks","years"],"created_at":"2025-01-23T12:17:41.500Z","updated_at":"2025-01-23T12:17:42.149Z","avatar_url":"https://github.com/steffenbrand.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InTime\n\n[![Build](https://travis-ci.org/steffenbrand/in-time.svg?branch=master)](https://travis-ci.org/steffenbrand/in-time)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/steffenbrand/in-time/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/steffenbrand/in-time/?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/steffenbrand/in-time/version)](https://packagist.org/packages/steffenbrand/in-time)\n[![Latest Unstable Version](https://poser.pugx.org/steffenbrand/in-time/v/unstable)](//packagist.org/packages/steffenbrand/in-time)\n[![Total Downloads](https://poser.pugx.org/steffenbrand/in-time/downloads)](https://packagist.org/packages/steffenbrand/in-time)\n[![License](https://poser.pugx.org/steffenbrand/in-time/license)](https://github.com/steffenbrand/in-time/blob/master/LICENSE.md)\n[![composer.lock available](https://poser.pugx.org/steffenbrand/in-time/composerlock)](https://github.com/steffenbrand/in-time/blob/master/composer.lock)\n\nHelper to convert years, days, hours, minutes, seconds and milliseconds to smaller time units.\n\n* [InTime on Packagist](https://packagist.org/packages/steffenbrand/in-time)\n* [InTime on GitHub](https://github.com/steffenbrand/in-time)\n\n## How to install\n\n```\ncomposer require steffenbrand/in-time\n```\n\n## How to use\n\n```php\n$a = 2 * Years::IN_DAYS; // 730\n$b = 2 * Weeks::IN_DAYS; // 14\n$c = 2 * Days::IN_HOURS; // 48\n$d = 2 * Hours::IN_MINUTES; // 120\n$e = 3 * Minutes::IN_SECONDS; // 180\n$f = 2 * Seconds::IN_MILLISECONDS; // 2000\n$g = 2 * Seconds::IN_MICROSECONDS; // 2000000\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteffenbrand%2Fin-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteffenbrand%2Fin-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteffenbrand%2Fin-time/lists"}