{"id":18841106,"url":"https://github.com/x1ao4/date-reformatter","last_synced_at":"2025-09-01T05:32:16.287Z","repository":{"id":181368728,"uuid":"666660294","full_name":"x1ao4/date-reformatter","owner":"x1ao4","description":"通过 python 脚本自动查找 txt 文档中的日期并修改日期格式 / automatically find the date in a txt file and change the date format via python scripts","archived":false,"fork":false,"pushed_at":"2023-07-15T08:38:32.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T03:48:06.607Z","etag":null,"topics":["conversion","convert","date","date-format","date-formatting","date-reformatter","date-time","datetime","format","format-conversion","formatter","txt","txt-files"],"latest_commit_sha":null,"homepage":"","language":"Python","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/x1ao4.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-15T06:31:12.000Z","updated_at":"2023-07-15T08:42:30.000Z","dependencies_parsed_at":"2024-12-30T09:47:31.045Z","dependency_job_id":"99535fa1-3cfa-4af2-8cca-85ffb97b50a4","html_url":"https://github.com/x1ao4/date-reformatter","commit_stats":null,"previous_names":["x1ao4/date-reformatter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/x1ao4/date-reformatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1ao4%2Fdate-reformatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1ao4%2Fdate-reformatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1ao4%2Fdate-reformatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1ao4%2Fdate-reformatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x1ao4","download_url":"https://codeload.github.com/x1ao4/date-reformatter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x1ao4%2Fdate-reformatter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273077227,"owners_count":25041358,"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","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","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":["conversion","convert","date","date-format","date-formatting","date-reformatter","date-time","datetime","format","format-conversion","formatter","txt","txt-files"],"created_at":"2024-11-08T02:50:04.275Z","updated_at":"2025-09-01T05:32:16.035Z","avatar_url":"https://github.com/x1ao4.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# date-reformatter\n使用 date-reformatter 可以自动将 txt 文档中 `YYYY/MM/DD` 格式的日期转换为 `MM/DD/YYYY` 格式。\n\n## 功能演示\n假设 `input.txt` 文件中的内容如下：\n```\n1;2023/1/2;9;Strong;With the help of her AI dog, a sixteen year-old girl must get her sick mother to another planet where a better life awaits.\n2;2023/1/4;14;LAL;Born with a word from nothing, the creature must eat one of its own to survive.\n3;2023/1/6;23;Gemini;A man suffering from amnesia searches for whispers of his past in a post-apocalyptic world, while being hunted by human-like \"Agents\".\n```\n运行脚本后，`output.txt` 文件中的内容将变为：\n```\n1;1/2/2023;9;Strong;With the help of her AI dog, a sixteen year-old girl must get her sick mother to another planet where a better life awaits.\n2;1/4/2023;14;LAL;Born with a word from nothing, the creature must eat one of its own to survive.\n3;1/6/2023;23;Gemini;A man suffering from amnesia searches for whispers of his past in a post-apocalyptic world, while being hunted by human-like \"Agents\".\n```\n日期从 `YYYY/MM/DD` 格式转换为了 `MM/DD/YYYY` 格式。\n\n## 运行条件\n请确保您的系统上安装了 Python 3.6 或更高版本。\n\n## 使用方法\n1. 将仓库克隆或下载到计算机上的一个目录中。\n2. 修改 `start.command (Mac)` 或 `start.bat (Win)` 中的路径，以指向您存放 `date-reformatter.py` 脚本的目录。\n3. 将要处理的文本保存为 `input.txt` 文件，并放在与脚本相同的目录中。\n4. 双击运行 `start.command` 或 `start.bat` 脚本以执行 `date-reformatter.py` 脚本。\n5. 结果将写入到同一目录下名为 `output.txt` 的文件中。\n\u003cbr\u003e\n\n# date-reformatter\nWith date-reformatter, you can automatically convert dates in the `YYYY/MM/DD` format to the `MM/DD/YYYY` format in a txt document.\n\n## Demo\nAssuming the contents of the `input.txt` file are as follows:\n```\n1;2023/1/2;9;Strong;With the help of her AI dog, a sixteen year-old girl must get her sick mother to another planet where a better life awaits.\n2;2023/1/4;14;LAL;Born with a word from nothing, the creature must eat one of its own to survive.\n3;2023/1/6;23;Gemini;A man suffering from amnesia searches for whispers of his past in a post-apocalyptic world, while being hunted by human-like \"Agents\".\n```\nAfter running the script, the content of the `output.txt` file will be:\n```\n1;1/2/2023;9;Strong;With the help of her AI dog, a sixteen year-old girl must get her sick mother to another planet where a better life awaits.\n2;1/4/2023;14;LAL;Born with a word from nothing, the creature must eat one of its own to survive.\n3;1/6/2023;23;Gemini;A man suffering from amnesia searches for whispers of his past in a post-apocalyptic world, while being hunted by human-like \"Agents\".\n```\nThe dates have been converted from the `YYYY/MM/DD` format to the `MM/DD/YYYY` format.\n\n## Requirements\nMake sure you have Python 3.6 or higher installed on your system.\n\n## Usage\n1. Clone or download the repository to a directory on your computer.\n2. Modify the path in `start.command (Mac)` or `start.bat (Win)` to point to the directory where you store the `date-reformatter.py` script.\n3. Save the text to be processed as an `input.txt` file and place it in the same directory as the script.\n4. Double-click `start.command` or `start.bat` to execute the `date-reformatter.py` script.\n5. The result will be written to a file named `output.txt` in the same directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx1ao4%2Fdate-reformatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx1ao4%2Fdate-reformatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx1ao4%2Fdate-reformatter/lists"}