<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: dates</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/dates.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2018-04-24T16:17:58+00:00</updated><author><name>Simon Willison</name></author><entry><title>dateparser: python parser for human readable dates</title><link href="https://simonwillison.net/2018/Apr/24/dateparser/#atom-tag" rel="alternate"/><published>2018-04-24T16:17:58+00:00</published><updated>2018-04-24T16:17:58+00:00</updated><id>https://simonwillison.net/2018/Apr/24/dateparser/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/scrapinghub/dateparser"&gt;dateparser: python parser for human readable dates&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
I’ve used dateutil.parser for this in the past, but dateparser is a major upgrade: it knows how to parse dates in 200 different language locales, can interpret different timezone representations and handles relative dates (“3 months, 1 week and 1 day ago”) as well.

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="https://github.com/simonw/csvs-to-sqlite/issues/33"&gt;csvs-to-sqlite: -d / -dt options for parsing columns as dates&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/dates"&gt;dates&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;&lt;/p&gt;



</summary><category term="dates"/><category term="python"/></entry><entry><title>If You Don't Date Your Work, It Sucks.</title><link href="https://simonwillison.net/2010/Jan/18/if/#atom-tag" rel="alternate"/><published>2010-01-18T17:46:24+00:00</published><updated>2010-01-18T17:46:24+00:00</updated><id>https://simonwillison.net/2010/Jan/18/if/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.protocolostomy.com/2010/01/18/if-you-dont-date-your-work-it-sucks/"&gt;If You Don&amp;#x27;t Date Your Work, It Sucks.&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
I learnt this lesson the hard way, when I realised that I had no idea exactly what year I created my earliest web-facing projects.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/archives"&gt;archives&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/dates"&gt;dates&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/year"&gt;year&lt;/a&gt;&lt;/p&gt;



</summary><category term="archives"/><category term="dates"/><category term="year"/></entry><entry><title>Tips on using python's datetime module</title><link href="https://simonwillison.net/2009/Jul/6/datetime/#atom-tag" rel="alternate"/><published>2009-07-06T14:20:12+00:00</published><updated>2009-07-06T14:20:12+00:00</updated><id>https://simonwillison.net/2009/Jul/6/datetime/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.enricozini.org/2009/debian/using-python-datetime/"&gt;Tips on using python&amp;#x27;s datetime module&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Wow. I’ve run in to problems with datetime and timezones before, but I had no idea how intrinsic those problems were to the design of the library.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/dates"&gt;dates&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datetime"&gt;datetime&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/times"&gt;times&lt;/a&gt;&lt;/p&gt;



</summary><category term="dates"/><category term="datetime"/><category term="python"/><category term="times"/></entry><entry><title>Making the HTML5 time element safe for historians</title><link href="https://simonwillison.net/2009/Apr/6/quirksblog/#atom-tag" rel="alternate"/><published>2009-04-06T14:01:37+00:00</published><updated>2009-04-06T14:01:37+00:00</updated><id>https://simonwillison.net/2009/Apr/6/quirksblog/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.quirksmode.org/blog/archives/2009/04/making_time_saf.html"&gt;Making the HTML5 time element safe for historians&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
PPK presents a detailed history of dates and calendars and points out that the HTML5 time element is ill prepared to faithfully represent the kind of dates historians are interested in.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/calendars"&gt;calendars&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/dates"&gt;dates&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/datetime"&gt;datetime&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/historians"&gt;historians&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/history"&gt;history&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/html5"&gt;html5&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/ppk"&gt;ppk&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/standards"&gt;standards&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/time"&gt;time&lt;/a&gt;&lt;/p&gt;



</summary><category term="calendars"/><category term="dates"/><category term="datetime"/><category term="historians"/><category term="history"/><category term="html5"/><category term="ppk"/><category term="standards"/><category term="time"/></entry><entry><title>Quoting The Long Now Foundation</title><link href="https://simonwillison.net/2008/Aug/25/longnow/#atom-tag" rel="alternate"/><published>2008-08-25T19:42:39+00:00</published><updated>2008-08-25T19:42:39+00:00</updated><id>https://simonwillison.net/2008/Aug/25/longnow/#atom-tag</id><summary type="html">
    &lt;blockquote cite="http://www.longnow.org/about/"&gt;&lt;p&gt;The Long Now Foundation was established in 01996*... (The Long Now Foundation uses five digit dates, the extra zero is to solve the deca-millennium bug which will come into effect in about 8,000 years.)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p class="cite"&gt;&amp;mdash; &lt;a href="http://www.longnow.org/about/"&gt;The Long Now Foundation&lt;/a&gt;&lt;/p&gt;

    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/dates"&gt;dates&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/decamillenniumbug"&gt;decamillenniumbug&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/long-now-foundation"&gt;long-now-foundation&lt;/a&gt;&lt;/p&gt;



</summary><category term="dates"/><category term="decamillenniumbug"/><category term="long-now-foundation"/></entry><entry><title>How Dopplr learns</title><link href="https://simonwillison.net/2008/Jul/23/dopplr/#atom-tag" rel="alternate"/><published>2008-07-23T16:17:30+00:00</published><updated>2008-07-23T16:17:30+00:00</updated><id>https://simonwillison.net/2008/Jul/23/dopplr/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://blog.dopplr.com/2008/07/23/how-dopplr-learns/"&gt;How Dopplr learns&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Dopplr uses global and personal trip histories to disambiguate place names, and your friends’ schedules to help disambiguate dates in airline confirmation emails.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/dates"&gt;dates&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/dopplr"&gt;dopplr&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/machine-learning"&gt;machine-learning&lt;/a&gt;&lt;/p&gt;



</summary><category term="dates"/><category term="dopplr"/><category term="machine-learning"/></entry></feed>