1 unstable release
Uses new Rust 2024
new 0.1.0 | Apr 16, 2025 |
---|
#643 in Command line utilities
39KB
249 lines
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/.
Dependencies
~2.7–4MB
~68K SLoC