{"id":22919395,"url":"https://github.com/justdvnsh/timestamp-microservice","last_synced_at":"2025-04-01T13:25:11.813Z","repository":{"id":100328838,"uuid":"148905772","full_name":"justdvnsh/timestamp-microservice","owner":"justdvnsh","description":"A timestamp microservice made in Nodejs","archived":false,"fork":false,"pushed_at":"2018-09-15T17:25:53.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-07T08:28:53.681Z","etag":null,"topics":["api","microservice","nodejs","rest-api","timestamp-microservice"],"latest_commit_sha":null,"homepage":"https://timestamp-justdvnsh.glitch.me/api/timestamp/2015-12-18","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/justdvnsh.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":"2018-09-15T13:46:36.000Z","updated_at":"2018-09-15T17:47:18.000Z","dependencies_parsed_at":"2023-05-13T21:45:53.691Z","dependency_job_id":null,"html_url":"https://github.com/justdvnsh/timestamp-microservice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justdvnsh%2Ftimestamp-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justdvnsh%2Ftimestamp-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justdvnsh%2Ftimestamp-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justdvnsh%2Ftimestamp-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justdvnsh","download_url":"https://codeload.github.com/justdvnsh/timestamp-microservice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246645551,"owners_count":20810978,"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":["api","microservice","nodejs","rest-api","timestamp-microservice"],"created_at":"2024-12-14T07:11:56.615Z","updated_at":"2025-04-01T13:25:11.784Z","avatar_url":"https://github.com/justdvnsh.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\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://timestamp-justdvnsh.glitch.me/api/timestamp/1450396800\n* https://timestamp-justdvnsh.glitch.me/api/timestamp/2015-12-18\n\n#### Example output:\n* { unix: 1450396800, natural: \"December 18, 2015\" }\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustdvnsh%2Ftimestamp-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustdvnsh%2Ftimestamp-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustdvnsh%2Ftimestamp-microservice/lists"}