JDATE(1)

πŸ“¦
version 0.5.1 Β· 2 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 NAME 🌸

okay so bestie, meet jdate β€” she shows you the Jalali date πŸ’– (it's the jdate manual page, and yes she's iconic)


✨ SYNOPSIS ✨

jdate [arRuhV]... [+OUTPUT_FORMAT][d INPUT_FORMAT;DATE_STRING]

πŸ’… DESCRIPTION πŸ’…

She displays the current date and time in whatever FORMAT you hand her. No cap.

πŸŽ€ OPTIONS πŸŽ€

  • -d, --date=FORMAT;STRING β€” shows the time described by STRING, not now. (like, you pick the moment, not her πŸ•°οΈ)
  • -a, --access=FILE β€” shows the last access time of FILE.
  • -r, --reference=FILE β€” shows the last modification time of FILE.
  • -j, --jalali=%Y/%m/%d β€” converts a gregorian date to jalali ✨
  • -g, --gregorian=%Y/%m/%d β€” converts a jalali date to gregorian.
  • -R, --rfc-2822 β€” outputs date and time in RFC 2822 format. Example: Jom, 06 Khor 1390 13:44:56 -0430.
  • -u, --utc, --universal β€” prints Coordinated Universal Time.
  • -h, --help β€” displays this help and exits. (she's helpful like that 🫢)
  • -V, --version β€” outputs version information and exits.

πŸ’– FORMAT πŸ’–

FORMAT controls the output, bestie. These are the interpreted sequences β€” learn them, they're the whole vibe:

  • %% β€” a literal %
  • %a β€” abbreviated weekday name (e.g., Sun)
  • %A β€” full weekday name (e.g., Sunday)
  • %b β€” abbreviated month name (e.g., Khor)
  • %B β€” full month name (e.g., Khordad)
  • %c β€” date and time (e.g., Jome Kho 6 17:18:25 1390)
  • %C β€” century; like %Y, except omit last two digits (e.g., 13)
  • %d β€” day of month (e.g., 01)
  • %D β€” date; same as %Y/%m/%d
  • %e β€” day of month, space padded; same as %_d
  • %E β€” date and time in Farsi. (utf8)
  • %F β€” full date; same as %Y-%m-%d
  • %h β€” abbreviated Farsi weekday name in English transliteration (e.g. Jom)
  • %q β€” full Farsi weekday name in English transliteration (e.g. Jomeh)
  • %g β€” abbreviated Farsi weekday name. (utf8)
  • %G β€” full Farsi weekday name. (utf8)
  • %v β€” abbreviated Farsi month name. (utf8)
  • %V β€” full Farsi month name. (utf8)
  • %H β€” hour (00..23)
  • %I β€” hour (01..12)
  • %j β€” day of year (001..366)
  • %k β€” hour (0..23)
  • %l β€” hour (1..12)
  • %m β€” month (01..12)
  • %M β€” minute (00..59)
  • %n β€” a newline
  • %O β€” AM or PM notation for time in Farsi. (utf8)
  • %p β€” either AM or PM; blank if not known
  • %P β€” like %p, but lower case
  • %r β€” 12-hour clock time (e.g., 17:24:04 PM)
  • %R β€” 24-hour hour and minute; same as %H:%M
  • %s β€” seconds since 1970-01-01 00:00:00 UTC
  • %S β€” second (00..59)
  • %t β€” a tab
  • %T β€” time; same as %H:%M:%S
  • %u β€” day of week (1..7); 1 is Saturday
  • %U β€” week number of year, with Saturday as first day of week (00..53)
  • %w β€” day of week (0..6); 0 is Saturday
  • %W β€” date representation in Farsi. (utf8)
  • %x β€” date representation (e.g., 06/03/90)
  • %X β€” time representation in Farsi. (utf8)
  • %y β€” last two digits of year (00..99)
  • %Y β€” year
  • %z β€” +hhmm numeric time zone (e.g., +0330)
  • %Z β€” alphabetic time zone abbreviation (e.g., IRST)

πŸ¦‹ EXAMPLES πŸ¦‹

watch her work, she ate fr fr:

jdate -uR

formats current UTC date and time in RFC2822 format.

jdate '+%Y-%m-%d %H:%M:%S'

formats current local date and time in the above format. e.g. 1390-03-06 21:12:17

jdate --access=foo.bar

displays last access time for file foo.bar

jdate '+%s' --date='%Y/%m/%d-%H:%M:%S;1390/03/06-21:14:17'

displays seconds since epoch (UTC) for local date specified by date string.


πŸ‘‘ AUTHOR πŸ‘‘

Written by Ashkan Ghassemi. <ghassemi@ftml.net>


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Report jdate bugs to <ghassemi@ftml.net>

libjalali home page: <http://savannah.nongnu.org/projects/jcal/>


🌈 SEE ALSO 🌈

jcal(1), jctime(3), jstrftime(3), jstrptime(3)


Copyright (C) 2011 Ashkan Ghassemi.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

ngl bestie, read that NO WARRANTY part twice. it's giving "she's free, she's yours, but she is not liable" πŸ’€

okay that's the whole page!! this was the jdate page, from the jdate corner of the world, dated Khordad 6, 1390 β€” thanks for reading the whole thing, ily, mwah πŸŽ€βœ¨πŸ¦‹πŸ’–

πŸ“¦ where this page comes from