项目作者: a5hk

项目描述 :
Command line tool to convert Gregorian calendar dates to Persian calendar dates
高级语言: Shell
项目地址: git://github.com/a5hk/pcal.git
创建时间: 2019-07-26T18:11:08Z
项目社区:https://github.com/a5hk/pcal

开源协议:MIT License

下载


pcal

A pure bash (no external commands) command line tool to convert Gregorian calendar dates to Persian calendar dates. Based on jalaali-js

Getting Started

Pipe Gregorian calendar dates in YYYY-MM-DD format to pcal to get that date in Persian calendar.

examples

If you have put pcal somewhere in your path:

  1. echo "2019-07-26" | pcal #1398-05-04

Or if it is not in your path:

  1. echo "2019-07-26" | /path/to/pcal #1398-05-04

To use a different output delimiter:

  1. echo "2019-07-26" | pcal -D / #1398/05/04

To use a different input delimiter:

  1. echo "2019/07/26" | pcal -d / #1398-05-04

To convert persian date to gregorian date:

  1. echo 1398-05-04 | pcal -g #2019-07-26

Current persian date:

  1. pcal -t #1398-05-17

Display a calendar (current month) :

  1. pcal -m

current month

License

This project is licensed under the MIT License - see the LICENSE file for details