todate

Crates.iotodate
lib.rstodate
version0.1.1
sourcesrc
created_at2023-10-19 20:34:30.700315
updated_at2023-10-20 07:17:46.786131
descriptionA utility to convert UNIX timestamps to human-readable dates.
homepage
repositoryhttps://github.com/PierreLeGuen/todate.git
max_upload_size
id1008328
size11,257
Pierre LE GUEN (PierreLeGuen)

documentation

README

todate

A command-line utility that converts UNIX timestamps into human-readable dates.

Example:

➜ todate 1697745797056
2023-10-19T22:03:17.056+02:00

Table of Contents

Description

The todate utility is a simple yet powerful tool designed to make the task of converting UNIX timestamps to standard date formats effortless. Whether you are debugging, logging, or just curious, todate has you covered.

Installation

Via cargo

If you have Rust's package manager cargo installed, you can quickly install todate:

cargo install todate

From Source

Clone the repository:

https://github.com/PierreLeGuen/todate.git

Navigate to the project directory:

cd todate

Build and install

cargo install --path .

Usage

To convert a UNIX timestamp to a human-readable date:

todate <timestamp>

Features

  • Supports timestamps in seconds, milliseconds, or nanoseconds.
  • Automatically detects the precision of the provided timestamp.
  • Displays the date and time in the system's local timezone.
Commit count: 2

cargo fmt