Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
International Rescue Committe

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 188 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

ddate



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 mech­
       anism  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.


       % 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.


BUGS

       ddate(1) will produce undefined behaviour if asked to pro­
       duce the date for St. Tib's day and its format string does
       not contain the St. Tib's Day delimiters %{ and %}.


NOTE

       After  `X-Day'  passed without incident, the Church of the
       SubGenius declared that it had got the year upside down  -
       X-Day  is  actually in 8661 AD rather than 1998 AD.  Thus,
       the True X-Day is Cfn 40, 9827.


AUTHOR

       Original program by Druel the Chaotic aka  Jeremy  Johnson
       (mpython@gnu.ai.mit.edu)
       Major  rewrite  by  Lee  H:.  O:.  Smith, KYTP, aka Andrew
       Bulhak (acb@dev.null.org)
       Five tons of flax.


DISTRIBUTION POLICY

       Public domain. All rites reversed.


SEE ALSO

       date(1),
       http://www.subgenius.com/
       Malaclypse the Younger,  Principia  Discordia,  Or  How  I
       Found Goddess And What I Did To Her When I Found Her

                       59 Bureaucracy 3161               DDATE(1)
  

The Linux Tutorial is always looking for new contributors.


Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial can use your help.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.04 Seconds