Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mjahmadi authored Feb 9, 2017
1 parent db3ed6c commit c3553c6
Showing 1 changed file with 39 additions and 14 deletions.
53 changes: 39 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# pjdate
The persian jalali calendar date tool for GNU command line.
The persian jalali calendar date tool for GNU command line. still needs some improvement and bug fix...

```
Display persian date in jalali calendar command line tool.
Usage: pjdate [OPTION]... [+FORMAT]
-f --format Formats output with the given pattern.
Expand All @@ -14,7 +15,7 @@ Usage: pjdate [OPTION]... [+FORMAT]
-r --reference Display the last modification time of FILE in jalali date.
--help Display this usage information and exit.
--version Output version information and exit.

FORMAT controls the output. Interpreted sequences are:
'%a' locale's abbreviated weekday name.
'%A' locale's full weekday name.
Expand All @@ -25,27 +26,51 @@ FORMAT controls the output. Interpreted sequences are:
'%M' month with leading zero (01..12).
'%y' Two digit year with leading zero.
'%Y' Four digit year.
'%j' day of year (1..366).
'%j' day of year (001..366).
'%u' day of week (1..7).
'%U' week number of year.
```
## configure and make

Examples:
To get current persian jalali date issue the following:
```
$ ./configure && make
```

$ pjdate
## optional install

To convert persian jalali date to gregorian date issue the following:
```
$ sudo ./make install
```

$ pjdate -g '1395-09-20'
## usage
To get current persian jalali date issue the following:
```
$ ./pjdate
```

To convert gregorian date to persian jalali date issue the following:
To convert persian jalali date to gregorian date issue the following:
```
$ ./pjdate -g '1395-09-20'
```

$ pjdate -j '2016-12-20'
To convert gregorian date to persian jalali date issue the following:
```
$ ./pjdate -j '2016-12-20'
```

To change the format of the output issue the following:
To compare two different persian jalali date issue the following:

$ pjdate -f '%y-%m-%d'
[NOTE: The below command will return the bigger date]
```
$ ./pjdate -c '1395-09-10:1396-08-06'
```

To get last modification date in persian jalali calendar issue the following:
To change the format of the output issue the following:
```
$ ./pjdate -f 'Y-m-d'
```

$ pjdate -r '~/PATH/TO/FILE'
To get last modification date in persian jalali calendar issue the following:
```
$ ./pjdate -r '~/PATH/TO/FILE'
```

0 comments on commit c3553c6

Please sign in to comment.