{"id":29020256,"url":"https://github.com/webdna/secondstohms","last_synced_at":"2025-06-26T01:04:59.640Z","repository":{"id":28506046,"uuid":"32022543","full_name":"webdna/secondstohms","owner":"webdna","description":"Craft Twig Extension for converting seconds to hours, minutes, seconds","archived":false,"fork":false,"pushed_at":"2015-03-11T15:02:44.000Z","size":136,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-24T22:03:26.983Z","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":"hortonworks-spark/shc","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdna.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-11T14:37:55.000Z","updated_at":"2016-05-21T22:53:24.000Z","dependencies_parsed_at":"2022-09-03T14:42:32.828Z","dependency_job_id":null,"html_url":"https://github.com/webdna/secondstohms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webdna/secondstohms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fsecondstohms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fsecondstohms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fsecondstohms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fsecondstohms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdna","download_url":"https://codeload.github.com/webdna/secondstohms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdna%2Fsecondstohms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261978912,"owners_count":23239417,"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":"2025-06-26T01:04:57.560Z","updated_at":"2025-06-26T01:04:59.571Z","avatar_url":"https://github.com/webdna.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# secondstohms\nCraft Twig Extension for converting seconds to hours, minutes, seconds\n\nTo install simply place the secondstohms directory in your Craft plugins directory and install in the control panel\n\n#### Simple Usage\n```\n{{ 307|secondsToHms }}\n\n// Returns 05:07\n```\n\n#### Usage With Options\n```\n{{ 4000|secondsToHms({ leadingZeros: \"minutes\", showHours: true }) }}\n\n// Returns 1:06:40\n```\n\n#### Options\n| Option | Values | Default | Explanation |\n| --------- | ----------- | ----------- | ----------- |\n| showHours | `true`, `false` | `false` | Whether or not to show hours |\n| leadingZeros | `hours`, `minutes`, `seconds` | `minutes` | Where to start showing leading zeros |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdna%2Fsecondstohms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdna%2Fsecondstohms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdna%2Fsecondstohms/lists"}