https://github.com/bbqsrc/ts
Print ISO 8601 or Unix timestamps on the command line
https://github.com/bbqsrc/ts
Last synced: 4 months ago
JSON representation
Print ISO 8601 or Unix timestamps on the command line
- Host: GitHub
- URL: https://github.com/bbqsrc/ts
- Owner: bbqsrc
- License: eupl-1.2
- Created: 2020-12-12T11:19:52.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-13T23:37:46.000Z (about 5 years ago)
- Last Synced: 2025-06-02T10:01:09.908Z (8 months ago)
- Language: Rust
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts
Convenient, small, cross-platform command line tool for generating timestamps on the command line.
## Install
```
cargo install ts-bin
```
## Usage
`ts` prints an ISO 8601 UTC date and time string by default (e.g. `2020-12-12T11:10:40.229006Z`).
It supports the following flags:
- `-l`: prints a local time, like `2020-12-12T12:10:38.407088+01:00`
- `-u`: prints a Unix epoch timestamp, like `1607771679`
- `-H`: as above, but in hexadecimal format, like `5fd4a630`
## License
The `ts-bin` crate is licensed under
* European Union Public License, version 1.2 or later, ([LICENSE](LICENSE) or https://joinup.ec.europa.eu/collection/eupl/eupl-text-11-12)
The EUPL is a **copyleft, GPL-compatible license** managed by the European Union, with legally-equal translated versions **in all languages of the EU**. See [this introduction](https://joinup.ec.europa.eu/collection/eupl/introduction-eupl-licence) for information about the purpose, objectives and translations of the license. See also the [license compatibility matrix](https://joinup.ec.europa.eu/collection/eupl/matrix-eupl-compatible-open-source-licences).