timeman

Crates.iotimeman
lib.rstimeman
version1.0.0
sourcesrc
created_at2024-04-23 09:15:23.136892
updated_at2024-04-23 09:15:23.136892
descriptionIs a time and date calculator
homepage
repositoryhttps://github.com/konkitoman/TimeMan
max_upload_size
id1217323
size36,250
Konkitoman (konkitoman)

documentation

README

TimeMan (cli)

Crates.io

Is a time and date calculator.

How to use

  • tm now to get the current time, output = Tue, 23 Apr 2024 11:40:37 +0300
  • tm since "$(tm now)" or tm s "$(tm now)" this will output a duration, output = PT0.51623755S
  • tm sub "$(tm now)" "Tue, 23 Apr 2024 11:40:37 +0300" this will output a duration, output = PT8M15S
  • tm sub-duration "$(tm now)" PT8M15S this will output a date and time, output = Tue, 23 Apr 2024 11:43:38 +0300
  • tm add-duration "$(tm now)" PT8M15S this will output a date and time, output = Tue, 23 Apr 2024 12:01:38 +0300
  • tm translate -F"%+" "$(tm now)" use this to change format or UTC offset, output = 2024-04-23T11:55:17+03:00
  • tm help-format to find out how to make your own format, the output will be like = %A : Full day of the week names.
  • tm help-format %A to see more info
  • tm help-format date to search for any thing that has date in description
  • tm help-duration to learn the duration flags

default format is the: %a, %d %b %Y %T %z is the same as date -R or rfc-email

How to install

This is a rust application you need to have the toolchain installed!

cargo install timeman or you can install from Releases

Commit count: 9

cargo fmt