<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>nixCraft &#187; fortnight</title> <atom:link href="http://www.cyberciti.biz/tips/tag/fortnight/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 03 Feb 2012 22:45:35 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Getting Yesterdays or Tomorrows Day With Bash Shell Date Command</title><link>http://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html</link> <comments>http://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html#comments</comments> <pubDate>Sun, 17 Jun 2007 18:28:04 +0000</pubDate> <dc:creator>Vivek Gite</dc:creator> <category><![CDATA[Howto]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Shell scripting]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[UNIX]]></category> <category><![CDATA[add date linux terminal]]></category> <category><![CDATA[cron]]></category> <category><![CDATA[current date]]></category> <category><![CDATA[date - 1 + unix]]></category> <category><![CDATA[date command]]></category> <category><![CDATA[date formats]]></category> <category><![CDATA[date in linux shell]]></category> <category><![CDATA[date time]]></category> <category><![CDATA[day after tomorrow]]></category> <category><![CDATA[day time]]></category> <category><![CDATA[fortnight]]></category> <category><![CDATA[gnu]]></category> <category><![CDATA[human readable format]]></category> <category><![CDATA[job]]></category> <category><![CDATA[language problem]]></category> <category><![CDATA[linux date add]]></category> <category><![CDATA[linux tomorrow date]]></category> <category><![CDATA[perl script]]></category> <category><![CDATA[perl scripts]]></category> <category><![CDATA[relative time]]></category> <category><![CDATA[scripts]]></category> <category><![CDATA[shell date]]></category> <category><![CDATA[shell scripts]]></category> <category><![CDATA[six months]]></category> <category><![CDATA[syntax]]></category> <category><![CDATA[time of day]]></category> <category><![CDATA[time zone]]></category> <category><![CDATA[tomorrow tomorrow]]></category> <category><![CDATA[unix date future date plus days]]></category> <category><![CDATA[unix get one previous day]]></category> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/getting-yesterdays-or-tomorrows-day-with-shell-date-command.html</guid> <description><![CDATA[<div
style='float:right;margin-top:0px;margin-left:5px;'><a
href='http://www.cyberciti.biz/tips/category/shell-scripting' title='See all Bash/Shell scripting related tips/articles'><img
src='http://files.cyberciti.biz/cbzcache/3rdparty/terminal.png' border='0' /></a></div> <span
class="drop_cap">W</span>hen invoked without arguments, the date command displays the current date and time.  Depending on the options specified, date will set the date and time or print it in a user defined way. I've seen many sysadmin writing perl scripts for calculating relative date such as yesterdays or tomorrows day. You can use GNU date command, which is designed to handle relative date calculation such as:<ul><li>1 Year</li><li>2 Days</li><li>2 Days ago</li><li>5 Years</li></ul>]]></description> <wfw:commentRss>http://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html/feed</wfw:commentRss> <slash:comments>42</slash:comments> </item> </channel> </rss>
