The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Working with a unified time

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Adam Green

Posts: 102
Nickname: darwinian
Registered: Dec, 2005

Adam Green is the author of Ruby.Darwinianweb.com
Working with a unified time Posted: Jan 4, 2006 8:11 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Adam Green.
Original Post: Working with a unified time
Feed Title: ruby.darwinianweb.com
Feed URL: http://www.nemesis-one.com/rss.xml
Feed Description: Adam Green's Ruby development site
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Adam Green
Latest Posts From ruby.darwinianweb.com

Advertisement
I have most of the details worked out for the RubyRiver code, although there were some struggles along the way. Somebody is going to have to explain to me why a long list of method names and arguments with no other explanation is considered "documentation" by so many people. One decision I have to make is how to display the date and time for each post. Every post has a date and time in its RSS item, but they are all in the blogger's local time with UTC offsets. All the posts need to be sorted on the publication date and time when they are combined into a single feed, so I will be converting them to the same time zone before sorting. The question is whether I use this unified time on the RubyRiver page and in the merged RSS feed. It seems confusing to display a post with a UTC or EST value when the poster may be in California. On the other hand, displaying the original value from the RSS feed also is confusing, because all the posts will be in different time zones. I can see why so many aggregators punt and display "XX minutes ago." That gives a unified format without any confusion. This works on the web page, but isn't valid in the RSS feed. I'll probably put back the original pubDate string in the merged RSS feed, and leave it up to the user's RSS reader to make its own decisions about formatting.

Read: Working with a unified time

Topic: Data structures for sorting feed items Previous Topic   Next Topic Topic: Memoizing to disk

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use