{"id":13502850,"url":"https://github.com/mitsuhiko/when","last_synced_at":"2025-05-16T08:07:10.553Z","repository":{"id":41387122,"uuid":"434727623","full_name":"mitsuhiko/when","owner":"mitsuhiko","description":"Timezones from the command line","archived":false,"fork":false,"pushed_at":"2024-07-12T23:18:46.000Z","size":1639,"stargazers_count":460,"open_issues_count":5,"forks_count":20,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-10T09:23:38.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mitsuhiko.github.io/when/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitsuhiko.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["mitsuhiko"]}},"created_at":"2021-12-03T20:38:57.000Z","updated_at":"2025-05-04T02:57:46.000Z","dependencies_parsed_at":"2024-10-30T14:15:43.997Z","dependency_job_id":null,"html_url":"https://github.com/mitsuhiko/when","commit_stats":{"total_commits":56,"total_committers":4,"mean_commits":14.0,"dds":0.0535714285714286,"last_synced_commit":"4cc12ce4dcd5f1a155ecb866c70809b2332b5172"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Fwhen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Fwhen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Fwhen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitsuhiko%2Fwhen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitsuhiko","download_url":"https://codeload.github.com/mitsuhiko/when/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493385,"owners_count":22080127,"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":"2024-07-31T22:02:27.068Z","updated_at":"2025-05-16T08:07:05.527Z","avatar_url":"https://github.com/mitsuhiko.png","language":"Rust","readme":"\u003cimg align=\"right\" src=\"https://raw.githubusercontent.com/mitsuhiko/when/main/assets/hello.png\" alt=\"example\" width=\"460\"\u003e\n\n\u003cdiv align=\"left\"\u003e\n  \u003ch3\u003e\u003cem\u003ewhen:\u003c/em\u003e a timezone utility for the command line\u003c/h3\u003e\n\u003c/div\u003e\n\n[![Build Status](https://github.com/mitsuhiko/when/workflows/Tests/badge.svg?branch=main)](https://github.com/mitsuhiko/when/actions?query=workflow%3ATests)\n[![Crates.io](https://img.shields.io/crates/d/when-cli.svg)](https://crates.io/crates/when-cli)\n[![License](https://img.shields.io/github/license/mitsuhiko/when)](https://github.com/mitsuhiko/when/blob/main/LICENSE)\n\n```\n$ when \"now in vienna\"\n```\n\n`when` is a small utility which tells you what time it is somewhere or what some time is somewhere.\nYou can use it from the command line or [uses it online from the browser](https://mitsuhiko.github.io/when/).\n\n**These are some input examples**:\n\n* `now`\n* `2 hours ago in yyz`\n* `5pm in yyz -\u003e sfo`\n* `5pm in vienna -\u003e london`\n* `4pm on 17.05.2021 in vienna -\u003e tokyo`\n* `4pm yesterday in vienna -\u003e vienna va`\n* `in 4 hours in san francisco`\n* `2pm in 2 days in new delhi`\n* `now in yyz -\u003e sfo -\u003e vie -\u003e lhr`\n* `unix 1639067620 in tokyo`\n\n## Installation\n\nConveniently via cargo:\n\n```\n$ cargo install when-cli\n```\n\nThere is also an [online version](https://mitsuhiko.github.io/when/) you can use\nfrom your browser.\n\nNote that this project requires a Rust 2021 compatible compiler (1.56.0 or\nlater).  Attempting to install this package on an older compiler will result\nin compilation errors (``feature `edition2021` is required``).  If you're\nusing rustup make sure to update (`rustup update`), you might be on an older\nversion.\n\n## Usage\n\nBasically takes a single argument which is a string which describes the format\nin roughly this syntax.  Both locations are optional.  The \"local\" location always\nrefers to the current machine's timezone.\n\n```\ntime and date in location -\u003e other location\n```\n\nMultiple locations can be suplied by using the arrow operator multiple times.  This\nmeans you can do things like `now in yyz -\u003e sfo -\u003e vie`.\n\nTime and date can be provided roughly like this:\n\n* `2:30pm`, `14:30`, `7:00`, `now`\n* `14:30 tomorrow`\n* `14:30`\n* `17:00 on 20.05.` (DD.MM.)\n* `17:00 on 20.05.2020` (DD.MM.YYYY)\n* relative times (`in 4 hours` or `4 hours ago`)\n* unix timestamps (`unix:TS` or `unix TS`)\n\nFor locations many major cities are supported as well as common timezone names\nlike `Europe/Vienna`.  A certain amount of disambiugation is possible with city\nnames.  For instance `Vienna VA` (Virginia) is different than `Vienna AT`\n(Austria).\n","funding_links":["https://github.com/sponsors/mitsuhiko"],"categories":["Rust"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuhiko%2Fwhen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitsuhiko%2Fwhen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitsuhiko%2Fwhen/lists"}