tvl-depot/tools
Vincent Ambo 00135d1c28 feat(tools/when): simple time-conversion tool
I often need unix timestamps, or have unix timestamps, or need timestamps at
certain relative offsets etc.

This adds a tool called `when` which can do all of this. It has basically no
user interface, you just call it with a time query and it does it if it
understands what you meant. This will get smarter over time as I find more uses.

Example:

    ~> when yesterday 5PM
    Local: Mon 06 May 2024 at 17:00:00 MSK
    UTC:   2024-05-06T14:00:00Z
    UNIX:  1715004000

It supports all kinds of queries already, see the usage for details.

Change-Id: I694ffef7608586acfb1ff8010ac0fac4d9951e2e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11598
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: tazjin <tazjin@tvl.su>
2024-05-08 13:26:34 +00:00
..
checks fix(tools/checks): Minor typo fix 2022-06-07 10:46:15 +00:00
cheddar chore(tools/cheddar): bump cargo dependencies 2023-11-12 22:42:04 +00:00
emacs-pkgs feat(treecrumbs): support for TOML 2024-03-10 19:35:46 +00:00
magrathea feat(tools/magrathea): Allow running commands in a shell 2023-12-12 11:44:46 +00:00
nixery refactor(nixery): expose launch script derivation 2024-02-28 20:21:04 +00:00
nsfv-setup style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
releases refactor(3p): use josh from nixpkgs 2024-04-28 15:19:15 +00:00
rust-crates-advisory fix(ops/pipelines): explicitly set contexts for annotations 2022-12-28 16:35:20 +00:00
when feat(tools/when): simple time-conversion tool 2024-05-08 13:26:34 +00:00
crate2nix-generate.nix refactor(tools): move crate2nix generate here 2024-01-18 15:02:15 +00:00
crfo-approve.nix feat(tools/crfo-approve): Add tool for CRFO depot-interventions 2022-02-07 19:12:31 +00:00
depot-deps.nix feat(tools/depot-deps): include josh-filter 2024-04-28 15:20:16 +00:00
depotfmt.nix fix(depotfmt): only exclude *imported* tvix tests 2024-03-15 14:22:49 +00:00
eprintf.nix style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
fetch-depot-inbox.nix feat(tools/fetch-depot-inbox): wrapper script to fetch depot maildir 2022-12-28 08:17:45 +00:00
gerrit-cli.nix fix(gerrit-cli): don't output the path to SSH if it's on the path 2020-06-21 23:49:30 +00:00
gerrit-update.nix feat(gerrit-update): Add helper script for updating Gerrit schema 2020-11-29 11:50:58 +00:00
git-r.nix feat(tools/git-r): git subcommand to display r/numbers for commits 2023-07-05 12:37:09 +00:00
hash-password.nix docs(REVIEWS): point people to signup.tvl.fyi for account creation 2023-09-12 13:59:34 +00:00
perf-flamegraph.nix fix(tools/perf-flamegraph): Get rid of most 'unknown's 2020-07-16 00:37:29 +00:00