fakedate 0.1.2-619366e

fakedate generates pseudo-random dates and times.
Documentation
  • Coverage
  • 83.33%
    10 out of 12 items documented3 out of 6 items with examples
  • Size
  • Source code size: 59.18 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.82 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ufoot

Fakedate

Fakedate generates pseudo-random dates and times.

It is written in Rust and is mostly a toy project to ramp up on the language. It might however be useful. Use at your own risk.

Fakedate icon

Status

Build Status

Current version is 0.1.2.

Install

No install target yet, copy the fakedate binary in your $PATH if you wish, that's all.

A few commands which may prove useful:

cargo build             # build debug binary in ./target/debug/
cargo build --release   # build release binary in ./target/release/
cargo test              # launch tests
rustfmt src/*.rs        # format code
./docker-build.sh       # build Docker image with version tag
./bump-version.sh       # bump minor version number

Usage

Simply launch:

cargo run

Or just run the binary directly:

./target/debug/fakedate
./target/release/fakedate

Alternatively, using docker:

docker run ufoot/fakedate

To pass options:

cargo run -- -1975

By default, the date is a random date for the current year. To use a different year:

fakedate -1975

Other standard options include:

  • -n, --no-newline: no newline char at the end of the date
  • -w, --week-end: force the date to be last week-end
  • -h, --help: display a short help.
  • -v, --version: display version.

Legal information

Fakedate is licensed under the MIT license.