{"id":16309777,"url":"https://github.com/chansen/c-timestamp","last_synced_at":"2025-09-12T15:33:01.522Z","repository":{"id":13622713,"uuid":"16315960","full_name":"chansen/c-timestamp","owner":"chansen","description":"Fast RFC 3339 (ISO 8601) timestamp parser and formatter implemented in C, zero dependencies.","archived":false,"fork":false,"pushed_at":"2014-02-13T20:15:36.000Z","size":208,"stargazers_count":37,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T09:23:20.795Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chansen.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":"2014-01-28T15:37:16.000Z","updated_at":"2024-09-06T14:07:51.000Z","dependencies_parsed_at":"2022-09-10T09:23:30.612Z","dependency_job_id":null,"html_url":"https://github.com/chansen/c-timestamp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chansen/c-timestamp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chansen%2Fc-timestamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chansen%2Fc-timestamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chansen%2Fc-timestamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chansen%2Fc-timestamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chansen","download_url":"https://codeload.github.com/chansen/c-timestamp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chansen%2Fc-timestamp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274831627,"owners_count":25357883,"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","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-10T21:22:32.249Z","updated_at":"2025-09-12T15:33:01.231Z","avatar_url":"https://github.com/chansen.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/chansen/c-timestamp.png?branch=master)](https://travis-ci.org/chansen/c-timestamp) [![Coverage Status](https://coveralls.io/repos/chansen/c-timestamp/badge.png)](https://coveralls.io/r/chansen/c-timestamp)\n\ntimestamp\n=========\n\n\n```c\n\ntypedef struct {\n    int64_t sec;    /* Number of seconds since the epoch of 1970-01-01T00:00:00Z */\n    int32_t nsec;   /* Nanoseconds [0, 999999999] */\n    int16_t offset; /* Offset from UTC in minutes [-1439, 1439] */\n} timestamp_t;\n\nint         timestamp_parse            (const char *str, size_t len, timestamp_t *tsp);\nsize_t      timestamp_format           (char *dst, size_t len, const timestamp_t *tsp);\nsize_t      timestamp_format_precision (char *dst, size_t len, const timestamp_t *tsp, int precision);\nint         timestamp_compare          (const timestamp_t *tsp1, const timestamp_t *tsp2);\nbool        timestamp_valid            (const timestamp_t *tsp);\nstruct tm * timestamp_to_tm_utc        (const timestamp_t *tsp, struct tm *tmp);\nstruct tm * timestamp_to_tm_local      (const timestamp_t *tsp, struct tm *tmp);\n\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchansen%2Fc-timestamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchansen%2Fc-timestamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchansen%2Fc-timestamp/lists"}