{"id":22971376,"url":"https://github.com/cx0der/timestamp-microservice","last_synced_at":"2026-04-30T01:35:42.732Z","repository":{"id":205611768,"uuid":"160044238","full_name":"cx0der/timestamp-microservice","owner":"cx0der","description":"Freecodecamp microservice timestamp challenge","archived":false,"fork":false,"pushed_at":"2018-12-25T17:30:50.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-02T06:17:06.302Z","etag":null,"topics":["express-js","microservice","timestamp","timestamp-microservice","unix"],"latest_commit_sha":null,"homepage":"https://cx0der-timestamp-microservice.glitch.me","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/cx0der.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}},"created_at":"2018-12-02T12:19:46.000Z","updated_at":"2018-12-25T17:31:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"bf6b8693-e53e-4c5c-b85c-7b18f4602506","html_url":"https://github.com/cx0der/timestamp-microservice","commit_stats":null,"previous_names":["cx0der/timestamp-microservice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cx0der/timestamp-microservice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cx0der%2Ftimestamp-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cx0der%2Ftimestamp-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cx0der%2Ftimestamp-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cx0der%2Ftimestamp-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cx0der","download_url":"https://codeload.github.com/cx0der/timestamp-microservice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cx0der%2Ftimestamp-microservice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32451474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["express-js","microservice","timestamp","timestamp-microservice","unix"],"created_at":"2024-12-14T22:17:28.907Z","updated_at":"2026-04-30T01:35:42.700Z","avatar_url":"https://github.com/cx0der.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 https://cx0der-timestamp-microservice.glitch.me/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 }`\ne.g. `{\"unix\": 1479663089000 ,\"utc\": \"Sun, 20 Nov 2016 17:31:29 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* https://cx0der-timestamp-microservice.glitch.me/api/timestamp/2015-12-15\n* https://cx0der-timestamp-microservice.glitch.me/api/timestamp/1450137600000\n\n#### Example output:\n* { \"unix\": 1450137600, \"natural\": \"December 15, 2015\" }\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcx0der%2Ftimestamp-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcx0der%2Ftimestamp-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcx0der%2Ftimestamp-microservice/lists"}