{"id":28807232,"url":"https://github.com/digitacoder/fcc-timestamp-microservice","last_synced_at":"2026-02-19T01:07:03.383Z","repository":{"id":166676948,"uuid":"255327514","full_name":"digitacoder/fcc-timestamp-microservice","owner":"digitacoder","description":"glitch-page- FCC Timestamp-Microservice Project","archived":false,"fork":false,"pushed_at":"2020-04-13T13:26:00.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-30T22:55:24.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://fcc-timestamp-microservice-thetradecoder.glitch.me/api/timestamp/","language":"HTML","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/digitacoder.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-13T12:58:38.000Z","updated_at":"2020-07-18T06:10:41.000Z","dependencies_parsed_at":"2023-06-01T15:15:27.802Z","dependency_job_id":null,"html_url":"https://github.com/digitacoder/fcc-timestamp-microservice","commit_stats":null,"previous_names":["tradecoder/fcc-timestamp-microservice","logixmaster/fcc-timestamp-microservice","mydigita/fcc-timestamp-microservice","erabossid/fcc-timestamp-microservice","erabosstt/fcc-timestamp-microservice","erabosscode/fcc-timestamp-microservice","eracodex/fcc-timestamp-microservice","digitacoder/fcc-timestamp-microservice","digitaboss/fcc-timestamp-microservice","erabossbd/fcc-timestamp-microservice","erabosscoder/fcc-timestamp-microservice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/digitacoder/fcc-timestamp-microservice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitacoder%2Ffcc-timestamp-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitacoder%2Ffcc-timestamp-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitacoder%2Ffcc-timestamp-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitacoder%2Ffcc-timestamp-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digitacoder","download_url":"https://codeload.github.com/digitacoder/fcc-timestamp-microservice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digitacoder%2Ffcc-timestamp-microservice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29600469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T00:59:38.239Z","status":"ssl_error","status_checked_at":"2026-02-19T00:59:36.936Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-06-18T11:38:55.414Z","updated_at":"2026-02-19T01:07:03.351Z","avatar_url":"https://github.com/digitacoder.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"### solved-by: theTradeCoder\n\n# 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 }`\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://curse-arrow.hyperdev.space/api/timestamp/2015-12-15\n* https://curse-arrow.hyperdev.space/api/timestamp/1450137600000\n\n#### Example output:\n* { \"unix\": 1450137600, \"natural\": \"December 15, 2015\" }\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitacoder%2Ffcc-timestamp-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigitacoder%2Ffcc-timestamp-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigitacoder%2Ffcc-timestamp-microservice/lists"}