{"id":19380695,"url":"https://github.com/drex44/timestamp-microservice","last_synced_at":"2026-05-14T13:31:26.360Z","repository":{"id":217465010,"uuid":"144240877","full_name":"drex44/Timestamp-Microservice","owner":"drex44","description":"API Project: Timestamp Microservice for FCC","archived":false,"fork":false,"pushed_at":"2019-04-16T10:59:45.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-04T02:33:22.805Z","etag":null,"topics":["expressjs","freecodecamp-project","html","nodejs"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/drex44.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-08-10T05:29:25.000Z","updated_at":"2018-08-10T06:26:57.000Z","dependencies_parsed_at":"2024-01-16T16:50:13.017Z","dependency_job_id":"357cd84f-7f62-4b87-934f-2465e3d786ae","html_url":"https://github.com/drex44/Timestamp-Microservice","commit_stats":null,"previous_names":["drex44/timestamp-microservice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drex44/Timestamp-Microservice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FTimestamp-Microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FTimestamp-Microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FTimestamp-Microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FTimestamp-Microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drex44","download_url":"https://codeload.github.com/drex44/Timestamp-Microservice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drex44%2FTimestamp-Microservice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33026784,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["expressjs","freecodecamp-project","html","nodejs"],"created_at":"2024-11-10T09:14:35.100Z","updated_at":"2026-05-14T13:31:25.610Z","avatar_url":"https://github.com/drex44.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API Project: Timestamp Microservice for FCC\n\n### User stories :\n\n1. The API endpoint is `GET [project_url]/api/timestamp/:date_string`\n2. A date string is valid if can be successfully parsed by `new Date(date_string)` (JS) . Note that the unix timestamp needs to be an **integer** (not a string) specifying **milliseconds**. In our test we will use date strings compliant with ISO-8601 (e.g. `\"2016-11-20\"`) because this will ensure an UTC timestamp.\n3. If the date string is **empty** it should be equivalent to trigger `new Date()`, i.e. the service uses the current timestamp.\n4. If the date string is **valid** the api returns a JSON having the structure\n   `{\"unix\": \u003cdate.getTime()\u003e, \"utc\" : \u003cdate.toUTCString()\u003e }`\n   e.g. `{\"unix\": 1451001600000 ,\"utc\": \"Fri, 25 Dec 2015 00:00:00 GMT\"}`.\n5. If the date string is **invalid** the api returns a JSON having the structure `{\"unix\": null, \"utc\" : \"Invalid Date\" }`. It is what you get from the date manipulation functions used above.\n\n#### Example usage:\n\n- \u003ca href=\"https://dear-hook.glitch.me/api/timestamp/2015-12-25\" target=\"_new\"\u003ehttps://dear-hook.glitch.me/api/timestamp/2015-12-25\u003c/a\u003e\n- \u003ca href=\"https://dear-hook.glitch.me/api/timestamp/1451001600000\" target=\"_new\"\u003ehttps://dear-hook.glitch.me/api/timestamp/1451001600000\u003c/a\u003e\n\n#### Example output:\n\n- {\"unix\":1451001600000, \"utc\":\"Fri, 25 Dec 2015 00:00:00 GMT\"}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrex44%2Ftimestamp-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrex44%2Ftimestamp-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrex44%2Ftimestamp-microservice/lists"}