Skip to main content

Joel Liu's Library tagged feed   View Popular

26 Jul 07

Universal Feed Parser in Ruby

  • The storage of dates in the *_parsed items (such as, updated_parsed,
    created_parsed, etc.) are in the Python 9-tuple format. While this is
    great for passing the date tests, Ruby has no good way of understanding
    these things. So, I wrote a helper method py2rtime that
    takes one of these 9-tuples as its argument and returns a Ruby Time
    object. It's placed in the top-level namespace, so you can call it
    anywhere in your code
1 - 6 of 6
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo