<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah/tags/time</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Tue, 14 Feb 2012 22:40:46 GMT</pubDate>
<item>
<title>(Bash) delete files older than 1 day</title>
<link>http://snipplr.com/view/40798/delete-files-older-than-1-day/</link>
<description><![CDATA[ <p>Finds and *removes* files older than 2 days.\r\n\r\n*Use with caution* obviously, as if you fuck up, you\'ll certainly delete files you want to keep, possibly *destroying your entire computer.*\r\n\r\nEnjoy!</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 03:20:55 GMT</pubDate>
<guid>http://snipplr.com/view/40798/delete-files-older-than-1-day/</guid>
</item>
<item>
<title>(Bash) Log4r: how to use RollingFileOutputter: automatically cycle stale logfiles</title>
<link>http://snipplr.com/view/26962/log4r-how-to-use-rollingfileoutputter-automatically-cycle-stale-logfiles/</link>
<description><![CDATA[ <p>(Log4r::RollingFileOutputter)(http://log4r.sourceforge.net/rdoc/files/log4r/formatter/formatter_rb.html) automatically renames/archives log files once they get too big or too old.

This is not my code, I found it [in Google's cache](http://74.125.93.132/search?q=cache:NH-CfIj0MhQJ:omf.mytestbed.net/repositories/entry/omf/branches/reorg/log4r-1.0.5/examples/fileroll.rb%3Fformat%3Draw%26rev%3D89+log4r+rollingfileoutputter) and I found it useful, so I figured I should preserve it.  If you're the author, get in touch and I'll credit/link you (and thanks!)</p> ]]></description>
<pubDate>Sun, 24 Jan 2010 15:18:50 GMT</pubDate>
<guid>http://snipplr.com/view/26962/log4r-how-to-use-rollingfileoutputter-automatically-cycle-stale-logfiles/</guid>
</item>
<item>
<title>(DOS Batch) Print Date/Time in DOS Batch File</title>
<link>http://snipplr.com/view/21573/print-datetime-in-dos-batch-file/</link>
<description><![CDATA[ <p>The code below shows how to format date and time stamps in DOS batch files.  This is very useful if you are creating a log file, or any file that should have a unique file name.

If you run the batch file below it should print something like the following output:

    Today's date is 2009_10_21

    The local time is 14_25_01

    Date and time: 2009_10_21_14_25_01</p> ]]></description>
<pubDate>Wed, 21 Oct 2009 14:17:34 GMT</pubDate>
<guid>http://snipplr.com/view/21573/print-datetime-in-dos-batch-file/</guid>
</item>
<item>
<title>(JavaScript) Get a UTC code from human-readable information</title>
<link>http://snipplr.com/view/9212/get-a-utc-code-from-humanreadable-information/</link>
<description><![CDATA[ <p>Date.UTC(year, month, day, hours, minutes, seconds, ms)</p> ]]></description>
<pubDate>Thu, 23 Oct 2008 14:00:07 GMT</pubDate>
<guid>http://snipplr.com/view/9212/get-a-utc-code-from-humanreadable-information/</guid>
</item>
<item>
<title>(Bash) List commands in history, sorted by usage</title>
<link>http://snipplr.com/view/6135/list-commands-in-history-sorted-by-usage/</link>
<description><![CDATA[ <p>Lists the top 10 commands in your history file.

Thanks Ben!

Here's an example session:

    May12 10:39:18 book> ~/Documents/n_s/tools/command-history.sh
    162 quite
    110 svn
    107 ruby
    61 curl
    39 rwget
    34 grep
    33 cd
    21 lwp-request
    19 fg
    17 ls</p> ]]></description>
<pubDate>Tue, 06 May 2008 15:24:05 GMT</pubDate>
<guid>http://snipplr.com/view/6135/list-commands-in-history-sorted-by-usage/</guid>
</item>
<item>
<title>(JavaScript) Get the time elapsed between two intervals</title>
<link>http://snipplr.com/view/3773/get-the-time-elapsed-between-two-intervals/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 24 Sep 2007 09:44:07 GMT</pubDate>
<guid>http://snipplr.com/view/3773/get-the-time-elapsed-between-two-intervals/</guid>
</item>
<item>
<title>(Perl) age of file?</title>
<link>http://snipplr.com/view/3137/age-of-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 03 Jul 2007 23:06:47 GMT</pubDate>
<guid>http://snipplr.com/view/3137/age-of-file/</guid>
</item>
<item>
<title>(Emacs Lisp) Time-stamp configuration</title>
<link>http://snipplr.com/view/2779/timestamp-configuration/</link>
<description><![CDATA[ <p>Turn on time-stamp updating, set the format of the time stamp.</p> ]]></description>
<pubDate>Sat, 02 Jun 2007 00:30:33 GMT</pubDate>
<guid>http://snipplr.com/view/2779/timestamp-configuration/</guid>
</item>
</channel>
</rss>
