{"id":15979181,"url":"https://github.com/perry-mitchell/is-time","last_synced_at":"2025-11-13T03:05:31.959Z","repository":{"id":57277651,"uuid":"91819309","full_name":"perry-mitchell/is-time","owner":"perry-mitchell","description":"Check if a string is a time value","archived":false,"fork":false,"pushed_at":"2017-05-19T20:14:01.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-03T13:23:56.561Z","etag":null,"topics":["data-type","format","time","timezone","validation"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/perry-mitchell.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":"2017-05-19T15:22:40.000Z","updated_at":"2017-05-19T20:09:37.000Z","dependencies_parsed_at":"2022-08-30T02:52:56.864Z","dependency_job_id":null,"html_url":"https://github.com/perry-mitchell/is-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/perry-mitchell%2Fis-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fis-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fis-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perry-mitchell%2Fis-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perry-mitchell","download_url":"https://codeload.github.com/perry-mitchell/is-time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240215733,"owners_count":19766458,"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":["data-type","format","time","timezone","validation"],"created_at":"2024-10-07T23:41:29.636Z","updated_at":"2025-11-13T03:05:26.937Z","avatar_url":"https://github.com/perry-mitchell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-time\nCheck if a string is a time value\n\n[![Build Status](https://travis-ci.org/perry-mitchell/is-time.svg?branch=master)](https://travis-ci.org/perry-mitchell/is-time) [![npm version](https://badge.fury.io/js/is-time.svg)](https://www.npmjs.com/package/is-time)\n\n## About\n`is-time` provides a simple function which can be used to test if a value resembles a _time_.\n\nInstallation is easy:\n\n```shell\nnpm install is-time --save\n# or\nyarn add is-time\n```\n\n## Usage\nOnce imported, simply pass a string value to `isTime`. Non-string values will throw exceptions.\n\n```javascript\nconst isTime = require(\"is-time\");\n\nisTime(\"23:43:12+0100\"); // true\nisTime(\"12:36:23.237 AM\"); // true\nisTime(\"03:71:02 a.m.\"); // false\nisTime(\"\"); // false\nisTime({}); // error\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperry-mitchell%2Fis-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperry-mitchell%2Fis-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperry-mitchell%2Fis-time/lists"}