EnglishFrenchSpanish

Ad


OnWorks favicon

ddate - Online in the Cloud

Run ddate in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ddate that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


ddate - convert Gregorian dates to Discordian dates

SYNOPSIS


ddate [+format] [date]

DESCRIPTION


ddate prints the date in Discordian date format.

If called with no arguments, ddate will get the current system date, convert this to the
Discordian date format and print this on the standard output. Alternatively, a Gregorian
date may be specified on the command line, in the form of a numerical day, month and year.

If a format string is specified, the Discordian date will be printed in a format specified
by the string. This mechanism works similarly to the format string mechanism of date(1),
only almost completely differently. The fields are:

%A Full name of the day of the week (i.e., Sweetmorn)

%a Abbreviated name of the day of the week (i.e., SM)

%B Full name of the season (i.e., Chaos)

%b Abbreviated name of the season (i.e., Chs)

%d Ordinal number of day in season (i.e., 23)

%e Cardinal number of day in season (i.e., 23rd)

%H Name of current Holyday, if any

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

%n Newline

%t Tab

%X Number of days remaining until X-Day. (Not valid if the SubGenius options are not
compiled in.)

%{

%} Used to enclose the part of the string which is to be replaced with the words "St.
Tib's Day" if the current day is St. Tib's Day.

%. Try it and see.

EXAMPLES


% ddate
Sweetmorn, Bureaucracy 42, 3161 YOLD

% ddate +'Today is %{%A, the %e of %B%}, %Y. %N%nCelebrate %H'
Today is Sweetmorn, the 42nd of Bureaucracy, 3161.

% ddate +"It's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 26 9 1995
It's Prickle-Prickle, the 50th of Bureaucracy, 3161.
Celebrate Bureflux

% ddate +"Today's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 29 2 1996
Today's St. Tib's Day, 3162.

Use ddate online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Firebird
    Firebird
    Firebird RDBMS offers ANSI SQL features
    & runs on Linux, Windows &
    several Unix platforms. Features
    excellent concurrency & performance
    & power...
    Download Firebird
  • 2
    KompoZer
    KompoZer
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 3
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 4
    UNetbootin
    UNetbootin
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • 5
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM is an easy to use
    ERP and CRM open source software package
    (run with a web php server or as
    standalone software) for businesses,
    foundations...
    Download Dolibarr ERP - CRM
  • 6
    SQuirreL SQL Client
    SQuirreL SQL Client
    SQuirreL SQL Client is a graphical SQL
    client written in Java that will allow
    you to view the structure of a JDBC
    compliant database, browse the data in
    tables...
    Download SQuirreL SQL Client
  • More »

Linux commands

Ad