• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Converting ISO 8061 datetimes to epoch timestamps

    May 13th, 2011
    python, tech  [html]
    If you have something like:
    2011-04-26T00:00:00Z-06
    And you want to convert this into seconds since the epoch, apparently the incantation is:
    int(time.mktime(dateutil.parser.parse(x).timetuple()))
    This requires the dateutil module.

    Recent posts on blogs I like:

    Experiences in raising children in shared housing

    Sometimes I see posts about people’s hope to raise children in a group housing situation, and it often seems overly optimistic to me. In particular they seem to expect that there will be more shared childcare than I think should be expected. Today I talke…

    via The whole sky October 18, 2021

    What to learn

    It's common to see people advocate for learning skills that they have or using processes that they use. For example, Steve Yegge has a set of blog posts where he recommends reading compiler books and learning about compilers. His reasoning is basicall…

    via Posts on Dan Luu October 18, 2021

    EDT with updating double counts

    I recently got confused thinking about the following case: Calculator bet: I am offered the opportunity to bet on a mathematical statement X to which I initially assign 50% probability (perhaps X = 139926 is a quadratic residue modulo 314159). I have acce…

    via The sideways view October 12, 2021

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact