<?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>No One Is Perfect &#187; timesheet</title>
	<atom:link href="http://watchitlater.com/blog/tag/timesheet/feed/" rel="self" type="application/rss+xml" />
	<link>http://watchitlater.com/blog</link>
	<description>A reluctant foray into the world of blogging.</description>
	<lastBuildDate>Sun, 13 Jun 2010 03:35:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Timesheets and Ruby</title>
		<link>http://watchitlater.com/blog/2008/04/timesheets-and-ruby/</link>
		<comments>http://watchitlater.com/blog/2008/04/timesheets-and-ruby/#comments</comments>
		<pubDate>Wed, 30 Apr 2008 09:04:08 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[My Code]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[timesheet]]></category>

		<guid isPermaLink="false">http://watchitlater.com/blog/?p=10</guid>
		<description><![CDATA[Timesheets are the bane of all software developers and consultants. Nobody does them on time, and I for one have difficulty remembering what I did during the week. I know I could simply fill in the timesheet each day, but heck, I am lazy. Over a few years, I&#8217;ve been writing and rewriting scripts to [...]]]></description>
			<content:encoded><![CDATA[<p>Timesheets are the bane of all software developers and consultants. Nobody does them on time, and I for one have difficulty remembering what I did during the week. I know I could simply fill in the timesheet each day, but heck, I am lazy. Over a few years, I&#8217;ve been writing and rewriting scripts to keep a timesheet in a CSV file, so that I can query it at the end of the week to see what I have been up to. The first version of this script was done in python and was actually implemented by a friend of mine a few companies ago. Since then, I&#8217;ve used the same idea to try out new programming languages, as &#8220;Hello World&#8221; is really stupid.</p>
<p>The current version of my timesheet &#8220;system&#8221; is in Ruby and consists of 2 scripts. Both scripts require the <a title="Chronic" href="http://chronic.rubyforge.org/">Chronic</a> gem for natural language date/time parsing. The first script <a href="http://watchitlater.com/blog/wp-content/uploads/2008/04/time_entry.rb">time_entry</a> is used to enter timesheet information, and the second script <a href="http://watchitlater.com/blog/wp-content/uploads/2008/04/time_report.rb">time_report</a> is used to search the timesheet.</p>
<p>Being lazy, I usually create aliases, one called &#8216;tt&#8217; for time_entry and one called &#8216;tl&#8217; for time_report. That way I can simply type</p>
<pre name="code">tt wibble middleware integration</pre>
<p>to create an entry for the wibble project (at the current date and time) and type</p>
<pre name="code">tl -s "monday last week" -e "friday last week"</pre>
<p>to get a summarised list of entries for last week.</p>
]]></content:encoded>
			<wfw:commentRss>http://watchitlater.com/blog/2008/04/timesheets-and-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
