{"id":16254599,"url":"https://github.com/tim-smart/timecode","last_synced_at":"2025-08-16T18:06:53.113Z","repository":{"id":136212608,"uuid":"161408532","full_name":"tim-smart/timecode","owner":"tim-smart","description":"A simple Timecode utility class written in Typescript","archived":false,"fork":false,"pushed_at":"2023-12-13T04:10:55.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T09:25:26.116Z","etag":null,"topics":["smpte","timecode"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/tim-smart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-12-11T23:54:44.000Z","updated_at":"2023-12-13T04:09:05.000Z","dependencies_parsed_at":"2023-12-13T05:22:50.793Z","dependency_job_id":null,"html_url":"https://github.com/tim-smart/timecode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Ftimecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Ftimecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Ftimecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-smart%2Ftimecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tim-smart","download_url":"https://codeload.github.com/tim-smart/timecode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247847613,"owners_count":21006100,"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":["smpte","timecode"],"created_at":"2024-10-10T15:23:05.400Z","updated_at":"2025-04-08T13:17:06.334Z","avatar_url":"https://github.com/tim-smart.png","language":"TypeScript","readme":"# @tim-smart/timecode\n\nA `Timecode` utility class for working with SMPTE timecode.\n\n## API\n\nHere is a copy of `dist/index.d.ts`:\n\n```ts\nexport interface ITimecodeObject {\n  hours: number;\n  minutes: number;\n  seconds: number;\n  frames: number;\n}\nexport declare type TTimecodeInput = string | ITimecodeObject;\nexport interface ITimecodeOptions {\n  framerate?: number;\n}\nexport declare class Timecode implements ITimecodeObject {\n  hours: number;\n  minutes: number;\n  seconds: number;\n  frames: number;\n\n  constructor(input: TTimecodeInput | number, opts?: ITimecodeOptions);\n\n  add(input: TTimecodeInput, subtract?: boolean): void;\n  subtract(input: TTimecodeInput): void;\n  frameCount(): number;\n  toMilliseconds(): number;\n  toSeconds(): number;\n  toString(): string;\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-smart%2Ftimecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim-smart%2Ftimecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-smart%2Ftimecode/lists"}