{"id":16591041,"url":"https://github.com/abhisekp/fcc-project-timestamp","last_synced_at":"2026-06-05T11:31:42.317Z","repository":{"id":152825972,"uuid":"129055679","full_name":"abhisekp/FCC-Project-Timestamp","owner":"abhisekp","description":"🔰 ⏲️ FreeCodeCamp project on Timestamp Microservice","archived":false,"fork":false,"pushed_at":"2018-06-30T13:31:41.000Z","size":13,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"glitch","last_synced_at":"2025-10-03T10:41:28.437Z","etag":null,"topics":["app","fcc","freecodecamp","microservice","nodejs","timeserver","timestamp","timestamp-microservice"],"latest_commit_sha":null,"homepage":"https://timestamp-microservice-absk.glitch.me/","language":null,"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/abhisekp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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-04-11T07:49:48.000Z","updated_at":"2024-04-18T09:24:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"38d58d6e-07e2-4eef-a116-c90a6e511f29","html_url":"https://github.com/abhisekp/FCC-Project-Timestamp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abhisekp/FCC-Project-Timestamp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhisekp%2FFCC-Project-Timestamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhisekp%2FFCC-Project-Timestamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhisekp%2FFCC-Project-Timestamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhisekp%2FFCC-Project-Timestamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhisekp","download_url":"https://codeload.github.com/abhisekp/FCC-Project-Timestamp/tar.gz/refs/heads/glitch","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhisekp%2FFCC-Project-Timestamp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33939225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["app","fcc","freecodecamp","microservice","nodejs","timeserver","timestamp","timestamp-microservice"],"created_at":"2024-10-11T23:15:07.153Z","updated_at":"2026-06-05T11:31:42.300Z","avatar_url":"https://github.com/abhisekp.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# FreeCodeCamp API Backend Project: Timestamp microservice [**`timestamp-microservice-absk`**](https://timestamp-microservice-absk.glitch.me)\nGet unix and natural timestamp.\n\n**Challenge:** \u003chttps://www.freecodecamp.com/challenges/timestamp-microservice\u003e\n\n## User stories:  \n\n1. I can pass a string as a parameter, and it will check to see whether that string contains either a unix timestamp or a natural language date (example: January 1, 2016). — **DONE**  \n   [https://timestamp-microservice-absk.glitch.me/api/ts/January 1, 2016](https://timestamp-microservice-absk.glitch.me/api/ts/January%201,%202016)  \n   ```json\n    {\n      \"unix\": 1451606400,\n      \"natural\": \"January 01, 2016\"\n    }\n   ```\n2. If it does, it returns both the Unix timestamp and the natural language form of that date. — **DONE**  \n   \u003chttps://timestamp-microservice-absk.glitch.me/api/ts/1451606400\u003e  \n   ```json\n    {\n      \"unix\": 1451606400,\n      \"natural\": \"January 01, 2016\"\n    }\n   ```\n3. If it does not contain a date or Unix timestamp, it returns null for those properties. — **DONE**  \n   \u003chttps://timestamp-microservice-absk.glitch.me/api/ts/random\u003e  \n   ```json\n    {\n      \"unix\": null,\n      \"natural\": null\n    }\n   ```\n\n### Additional Features:\n\n1. If url is `/api/ts` without any timestamp, then respond with the current time. — **DONE**  \n   \u003chttps://timestamp-microservice-absk.glitch.me/api/ts\u003e  \n   ```json\n    {\n      \"unix\": 1523406140,\n      \"natural\": \"April 11, 2018\"\n    }\n   ```\n\n\n## Usage\n\n```text\nAPI_HOST: timestamp-microservice-absk.glitch.me\nAPI_VERSION: v1\nAPI_ROOT: /api\n```\n**OUTPUT**   \n\n```text\n{\n  \"unix\": \u003ctime in seconds\u003e e.g. 1492905600 or null\n  \"natural\": \"Month Day, Year\" e.g. \"April 23, 2017\" or null\n}\n```\n\n#### Example\n\n\u003chttps://timestamp-microservice-absk.glitch.me/api\u003e\n\n----\n### Timestamp API\n\n```http\nGET /timestamp\nGET /ts\n```\n\n`https://timestamp-microservice-absk.glitch.me/api/timestamp/:timestring`  \n`https://timestamp-microservice-absk.glitch.me/api/ts/:timestring`\n\n- **`:timestring`** - Unix timestamp or natural time  \n  e.g. `Jan 1, 2050`, `28th February 1995`, `1448928000`, etc.\n\n#### Example\n\u003chttps://timestamp-microservice-absk.glitch.me/api/ts/1448928000\u003e\n\n##### TODO\n\n1. Support for relative time `/ts/{now,latest,today,yesterday,a year ago, etc}`.\n2. Frontend of the API timeserver for easy getting the time.\n3. Have a great design of the frontend.\n4. If url is `/api`, then repond with a JSON document with an `error` and a `documention_url` field directing to the relevant documentation of the timeserver.\n5. Add authentication and limit based on the authenticated user priviledges","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhisekp%2Ffcc-project-timestamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhisekp%2Ffcc-project-timestamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhisekp%2Ffcc-project-timestamp/lists"}