Feed Sign in with OpenID OpenID

Simon Willison’s Weblog

2 items tagged “time”

Making the HTML5 time element safe for historians. 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. 0 6th April 2009, 2:01 pm

calendar.timegm() (via) An “unrelated but handy function” that converts a time.gmtime() in to a corresponding Unix timestamp. I’ve been hand-rolling this one for years; never thought to look in calendar. 0 3rd September 2007, 1:54 am

A django site