{"id":26483820,"url":"https://github.com/chatopera/datemath-js","last_synced_at":"2025-03-20T04:58:11.651Z","repository":{"id":57101302,"uuid":"296027691","full_name":"chatopera/datemath-js","owner":"chatopera","description":"datemath parser","archived":false,"fork":false,"pushed_at":"2020-09-16T13:40:48.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-04T19:47:56.828Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chatopera.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-16T12:36:13.000Z","updated_at":"2023-09-01T08:41:02.000Z","dependencies_parsed_at":"2022-08-20T21:11:01.564Z","dependency_job_id":null,"html_url":"https://github.com/chatopera/datemath-js","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/chatopera%2Fdatemath-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fdatemath-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fdatemath-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chatopera%2Fdatemath-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chatopera","download_url":"https://codeload.github.com/chatopera/datemath-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244554067,"owners_count":20471173,"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":[],"created_at":"2025-03-20T04:58:11.060Z","updated_at":"2025-03-20T04:58:11.644Z","avatar_url":"https://github.com/chatopera.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# datemath\n\ndatemath parser.\n\n## Usage\n\n```\nnpm install @chatopera/datemath\n```\n\nusage:\n\n```\nconst {parse} = require(\"@chatopera/datemath\")\nlet now = parse(\"now\")\n// now is moment date object.\n```\n\ncli: timestamp STR [TIMEZONE]\n\nFor example: `timestamp now Asia/Shanghai`\n\n## Learn more about date math syntax\n\nhttps://stackoverflow.com/questions/27152490/elasticsearch-date-range-get-yesterday\n\nhttps://www.elastic.co/guide/en/elasticsearch/reference/6.5/common-options.html#date-math\n\n## Other tools:\n\nConvert timestamp, https://www.unixtimestamp.com/index.php\n\nGet world timezone map, https://momentjs.com/timezone/\n\n## Borrow code from\n\n**Deprecated**: This library is deprecated in favour of https://github.com/elastic/kibana/tree/master/packages/elastic-datemath. See https://github.com/elastic/kibana/tree/master/packages for details on how to use Kibana specific packages.\n\nDatemath string parser used in Kibana\n\n## License\n\nCopyright (2018-2020) \u003ca href=\"https://www.chatopera.com/\" target=\"_blank\"\u003e北京华夏春松科技有限公司\u003c/a\u003e\n\n[Apache License Version 2.0](https://gitee.com/chatopera/cosin/blob/master/LICENSE)\n\n[![chatoper banner][co-banner-image]][co-url]\n\n[co-banner-image]: https://static-public.chatopera.com/assets/images/42383104-da925942-8168-11e8-8195-868d5fcec170.png\n[co-url]: https://www.chatopera.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatopera%2Fdatemath-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchatopera%2Fdatemath-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchatopera%2Fdatemath-js/lists"}