Git Product home page Git Product logo

timeman's Introduction

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

timeman's People

Contributors

konkitoman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.