khorshid-date

Crates.iokhorshid-date
lib.rskhorshid-date
version0.1.0
created_at2025-04-16 10:45:12.219034+00
updated_at2025-04-16 10:45:12.219034+00
descriptionDisplays Persian/Jalali date for the given format
homepage
repositoryhttps://codeberg.org/CIAvash/khorshid
max_upload_size
id1636289
size58,742
Siavash Askari Nasr (CIAvash)

documentation

README

khorshid-date

A program for displaying Persian/jalali date for the given format

SYNOPSIS

Usage: khorshid-date [OPTIONS] [FORMAT]

Arguments:
  [FORMAT]  e.g. %Y-%m-%d

Options:
  -p, --persian
  -e, --english
  -h, --help     Print help
  -V, --version  Print version

Following format specifiers are supported:

  • %Y: Year
  • %m: Month
  • %d: Day
  • %e: Space-padded day
  • %F: %Y-%m-%d
  • %x: %Y/%m/%d
  • %A: Day name
  • %B: Month name
  • %H: Hour
  • %M: Minute
  • %S: Second
  • %R: %H:%M
  • %X: %H:%M:%S
  • %t: Tab
  • %n: Newline

BUILDING

Using Cargo.

cargo build -p khorshid-date

TESTING

Using Cargo.

cargo test -p khorshid-date

and

FAKE_DATE=1 cargo test -p khorshid-date

INSTALLATION

Using Cargo.

From crates.io:

cargo install khorshid-date

From Source:

cargo install --path khorshid-date

LICENSE

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Commit count: 0

cargo fmt