{"id":22533796,"url":"https://github.com/ezzeddinp/timestamp-microservice","last_synced_at":"2026-04-18T17:03:34.101Z","repository":{"id":180446767,"uuid":"665123099","full_name":"ezzeddinp/Timestamp-Microservice","owner":"ezzeddinp","description":"Timestamp Microservice Backend Project","archived":false,"fork":false,"pushed_at":"2023-07-11T13:38:52.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-02T06:41:37.025Z","etag":null,"topics":["backend-service","css3","fcc-certification","html5","javascript"],"latest_commit_sha":null,"homepage":"https://replit.com/boilerplate-project-timestamp-1","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/ezzeddinp.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":"2023-07-11T13:38:21.000Z","updated_at":"2023-07-11T13:41:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"3741dc52-963b-4442-9f3d-242f19abf067","html_url":"https://github.com/ezzeddinp/Timestamp-Microservice","commit_stats":null,"previous_names":["ezzeddinp/timestamp-microservice"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezzeddinp%2FTimestamp-Microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezzeddinp%2FTimestamp-Microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezzeddinp%2FTimestamp-Microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ezzeddinp%2FTimestamp-Microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ezzeddinp","download_url":"https://codeload.github.com/ezzeddinp/Timestamp-Microservice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245978233,"owners_count":20703677,"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":["backend-service","css3","fcc-certification","html5","javascript"],"created_at":"2024-12-07T09:09:38.787Z","updated_at":"2026-04-18T17:03:29.055Z","avatar_url":"https://github.com/ezzeddinp.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# API Project: Timestamp Microservice for FCC\n\n### User stories:\n\n[![Run on Repl.it](https://repl.it/badge/github/freeCodeCamp/boilerplate-project-timestamp)](https://repl.it/github/freeCodeCamp/boilerplate-project-timestamp)\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 `{\"error\" : \"Invalid Date\" }`.\n\n#### Example usage:\n* https://Timestamp-Microservice--freecodecamp.repl.co/api/timestamp/2015-12-25\n*https://Timestamp-Microservice--freecodecamp.repl.co/api/timestamp/1451001600000\n\n#### Example output:\n* {\"unix\":1451001600000, \"utc\":\"Fri, 25 Dec 2015 00:00:00 GMT\"}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezzeddinp%2Ftimestamp-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fezzeddinp%2Ftimestamp-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fezzeddinp%2Ftimestamp-microservice/lists"}