1
2JDATE(1) User Commands JDATE(1)
3
4
5
7 jdate - manual page for jdate
8
10 jdate [arRuhV]... [+OUTPUT_FORMAT][d INPUT_FORMAT;DATE_STRING]
11
13 Display the current date and time in the given FORMAT.
14
15 -d, --date=FORMAT;STRING
16 display time described by STRING, not `now'
17
18 -a, --access=FILE
19 display the last access time of FILE.
20
21 -r, --reference=FILE
22 display the last modification time of FILE.
23
24 -j, --jalali=%Y/%m/%d
25 converts a gregorian date to jalali.
26
27 -g, --gregorian=%Y/%m/%d
28 converts a jalali date to gregorian.
29
30 -R, --rfc-2822
31 output date and time in RFC 2822 format. Example: Jom, 06 Khor
32 1390 13:44:56 -0430.
33
34 -u, --utc, --universal
35 print Coordinated Universal Time.
36
37 -h, --help
38 display this help and exit.
39
40 -V, --version
41 output version information and exit.
42
43 FORMAT controls the output.
44 Interpreted sequences are:
45
46 %% a literal %
47
48 %a abbreviated weekday name (e.g., Sun)
49
50 %A full weekday name (e.g., Sunday)
51
52 %b abbreviated month name (e.g., Khor)
53
54 %B full month name (e.g., Khordad)
55
56 %c date and time (e.g., Jome Kho 6 17:18:25 1390)
57
58 %C century; like %Y, except omit last two digits (e.g., 13)
59
60 %d day of month (e.g., 01)
61
62 %D date; same as %Y/%m/%d
63
64 %e day of month, space padded; same as %_d
65
66 %E date and time in Farsi. (utf8)
67
68 %F full date; same as %Y-%m-%d
69
70 %h abbreviated Farsi weekday name in English transliteration (e.g.
71 Jom)
72
73 %q full Farsi weekday name in English transliteration (e.g. Jomeh)
74
75 %g abbreviated Farsi weekday name. (utf8)
76
77 %G full Farsi weekday name. (utf8)
78
79 %v abbreviated Farsi month name. (utf8)
80
81 %V full Farsi month name. (utf8)
82
83 %H hour (00..23)
84
85 %I hour (01..12)
86
87 %j day of year (001..366)
88
89 %k hour (0..23)
90
91 %l hour (1..12)
92
93 %m month (01..12)
94
95 %M minute (00..59)
96
97 %n a newline
98
99 %O AM or PM notation for time in Farsi. (utf8)
100
101 %p either AM or PM; blank if not known
102
103 %P like %p, but lower case
104
105 %r 12-hour clock time (e.g., 17:24:04 PM)
106
107 %R 24-hour hour and minute; same as %H:%M
108
109 %s seconds since 1970-01-01 00:00:00 UTC
110
111 %S second (00..59)
112
113 %t a tab
114
115 %T time; same as %H:%M:%S
116
117 %u day of week (1..7); 1 is Saturday
118
119 %U week number of year, with Saturday as first day of week (00..53)
120
121 %w day of week (0..6); 0 is Saturday
122
123 %W date representation in Farsi. (utf8)
124
125 %x date representation (e.g., 06/03/90)
126
127 %X time representation in Farsi. (utf8)
128
129 %y last two digits of year (00..99)
130
131 %Y year
132
133 %z +hhmm numeric time zone (e.g., +0330)
134
135 %Z alphabetic time zone abbreviation (e.g., IRST)
136
138 jdate -uR
139 formats current UTC date and time in RFC2822 format.
140
141 jdate '+%Y-%m-%d %H:%M:%S'
142 formats current local date and time in the above format. e.g.
143 1390-03-06 21:12:17
144
145 jdate --access=foo.bar
146 displays last access time for file foo.bar
147
148 jdate '+%s' --date='%Y/%m/%d-%H:%M:%S;1390/03/06-21:14:17'
149 displays seconds since epoch (UTC) for local date specified by
150 date string.
151
153 Written by Ashkan Ghassemi. <ghassemi@ftml.net>
154
156 Report jdate bugs to <ghassemi@ftml.net>
157
158 libjalali home page: <http://savannah.nongnu.org/projects/jcal/>
159
161 jcal(1), jctime(3), jstrftime(3), jstrptime(3)
162
164 Copyright (C) 2011 Ashkan Ghassemi.
165
166 License GPLv3+: GNU GPL version 3 or later
167 <http://gnu.org/licenses/gpl.html>. This is free software: you are
168 free to change and redistribute it. There is NO WARRANTY, to the extent
169 permitted by law.
170
171
172
173jdate Khordad 6, 1390 JDATE(1)