{"id":20811958,"url":"https://github.com/libercosoft/timestamp_microservice","last_synced_at":"2026-03-19T17:38:18.246Z","repository":{"id":127757890,"uuid":"215280697","full_name":"LIBERCOSOFT/timestamp_microservice","owner":"LIBERCOSOFT","description":"A FCC back-end API micro-service project","archived":false,"fork":false,"pushed_at":"2022-12-11T09:29:23.000Z","size":31,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T08:31:53.158Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/LIBERCOSOFT.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":"2019-10-15T11:22:55.000Z","updated_at":"2019-10-15T11:30:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"3173814a-1629-482b-ba64-66bc75fc4363","html_url":"https://github.com/LIBERCOSOFT/timestamp_microservice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LIBERCOSOFT/timestamp_microservice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIBERCOSOFT%2Ftimestamp_microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIBERCOSOFT%2Ftimestamp_microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIBERCOSOFT%2Ftimestamp_microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIBERCOSOFT%2Ftimestamp_microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LIBERCOSOFT","download_url":"https://codeload.github.com/LIBERCOSOFT/timestamp_microservice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LIBERCOSOFT%2Ftimestamp_microservice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30520267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-14T19:51:21.629Z","status":"ssl_error","status_checked_at":"2026-03-14T19:51:12.959Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":"2024-11-17T20:49:28.561Z","updated_at":"2026-03-14T22:31:27.564Z","avatar_url":"https://github.com/LIBERCOSOFT.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://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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibercosoft%2Ftimestamp_microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibercosoft%2Ftimestamp_microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibercosoft%2Ftimestamp_microservice/lists"}