• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Converting ISO 8061 datetimes to epoch timestamps

    May 13th, 2011
    python, tech
    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:

    Vegan nutrition notes

    I just got comprehensive blood test results and it seems my nutritional numbers are in decent shape (vitamin D, B12, etc) after being vegan for over a year, which is a good sign that I’m probably doing most things okay. Also, I feel good, my weight hasn’t…

    via Home June 2, 2023

    How much to coerce children?

    What's "for their own good"? The post How much to coerce children? appeared first on Otherwise.

    via Otherwise May 29, 2023

    Some mistakes I made as a new manager

    the trough of zero dopamine • managing the wrong amount • procrastinating on hard questions • indefinitely deferring maintenance • angsting instead of asking

    via benkuhn.net April 23, 2023

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact