the ddate command with its examples

  • About ddate : To converts Gregorian dates to Discordian dates
  • Comes From : util-linux-ng-2.17.2

Examples :

1. To display the Discordian dates

$ ddate

2. To print full name of the day of the week

$ ddate +%A

3. To abbreviated name of the day of the week

$ ddate +%a

4. To Full name of the season

$ ddate +%B

5. To Abbreviated name of the season

$ ddate +%b

6. To Ordinal number of day in season

$ ddate +%d

7. To Cardinal number of day in season

$ ddate +%e

8. To Name of current Holyday, if any

$ ddate +%H

9. To Magic code to prevent rest of format from being printed unless today is a Holyday

$ ddate +%N

10. To print the newline

$ ddate +%n

11. To print the tab

$ ddate +%t

12. To print the Number of days remaining until X-Day

$ ddate %X

Leave a Reply

Your email address will not be published. Required fields are marked *