| Crates.io | khorshid-date |
| lib.rs | khorshid-date |
| version | 0.1.0 |
| created_at | 2025-04-16 10:45:12.219034+00 |
| updated_at | 2025-04-16 10:45:12.219034+00 |
| description | Displays Persian/Jalali date for the given format |
| homepage | |
| repository | https://codeberg.org/CIAvash/khorshid |
| max_upload_size | |
| id | 1636289 |
| size | 58,742 |
A program for displaying Persian/jalali date for the given format
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: NewlineUsing Cargo.
cargo build -p khorshid-date
Using Cargo.
cargo test -p khorshid-date
and
FAKE_DATE=1 cargo test -p khorshid-date
Using Cargo.
From crates.io:
cargo install khorshid-date
From Source:
cargo install --path khorshid-date
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/.