{"id":13648788,"url":"https://github.com/ptrbrynt/timey","last_synced_at":"2025-04-22T11:33:12.543Z","repository":{"id":57669842,"uuid":"173963254","full_name":"ptrbrynt/timey","owner":"ptrbrynt","description":"A command line utility for parsing and formatting timestamps, written in Rust.","archived":false,"fork":false,"pushed_at":"2019-03-11T08:40:50.000Z","size":31,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2024-11-09T23:36:21.226Z","etag":null,"topics":["command-line","rust","rust-crate"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/ptrbrynt.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":"2019-03-05T14:37:09.000Z","updated_at":"2024-03-15T02:39:39.000Z","dependencies_parsed_at":"2022-09-26T20:40:38.073Z","dependency_job_id":null,"html_url":"https://github.com/ptrbrynt/timey","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/ptrbrynt%2Ftimey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrbrynt%2Ftimey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrbrynt%2Ftimey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrbrynt%2Ftimey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptrbrynt","download_url":"https://codeload.github.com/ptrbrynt/timey/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250232522,"owners_count":21396658,"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":["command-line","rust","rust-crate"],"created_at":"2024-08-02T01:04:32.586Z","updated_at":"2025-04-22T11:33:12.248Z","avatar_url":"https://github.com/ptrbrynt.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Timey\n\n[![Build Status](https://travis-ci.org/ptrbrynt/timey.svg?branch=develop)](https://travis-ci.org/ptrbrynt/timey)\n![Crates.io](https://img.shields.io/crates/v/timey.svg)\n![Crates.io](https://img.shields.io/crates/d/timey.svg)\n![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/ptrbrynt/timey.svg)\n![Crates.io](https://img.shields.io/crates/l/timey.svg)\n\nTimey is a command-line application written in Rust which allows for quick and easy translation between timestamps and formatted date-times.\n\n## Installation\n\nFirst you'll need to install Rust. There are instructions [here](https://www.rust-lang.org/tools/install).\n\nOnce you have Rust installed, simply run:\n\n```bash\ncargo install timey\n```\n\n## Usage\n\n### Parse a date-time string into a timestamp\n\n```bash\n$ timey parse '2019-03-05 00:00 +0100' --format '%Y-%m-%d %H:%M %z'\n1551744000\n```\n\n```bash\n$ timey parse '2019-03-05T00:00+01:00'\n1525521780\n```\n\n### Format a timestamp as a date-time string\n\n```bash\n$ timey format 1525521780\n2019-03-05T00:00+01:00\n```\n\n```bash\ntimey format 1525521780 -f '%Y-%m-%d'\n2018-05-05\n```\n\n### Formatting Options\n\nFor a full list of formatting specifiers, see [here](https://docs.rs/chrono/0.4.6/chrono/format/strftime/index.html#specifiers).\n\n### Options\n\n```bash\n-c, --copy # Copy the result to your the clipboard\n-f, --format # The date format to use for parsing/formatting\n-m, --millis # Use timestamps in millis rather than seconds\n-h, --help # Display help\n```\n\n## Display Current Time\n\n_The `-c` flag for copying the result to the clipboard also works with these commands._\n\n### As a timestamp\n\n```bash\n$ timey now display\n1551908316\n```\n\n```bash\n$ timey now display -m\n1551908316000\n```\n\n### As a formatted date-time string\n\n```bash\n$ timey now format\n2019-03-06T21:38:30.265352+00:00\n```\n\n```bash\n$ timey now format -f '%Y-%m-%d'\n2019-03-06\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrbrynt%2Ftimey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptrbrynt%2Ftimey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrbrynt%2Ftimey/lists"}