Show only items within the select time range

According to the Mozilla Developer Network (MDN), there are at least 2 interfaces which can be used to parse RSS and Atom feeds: nsIFeedEntry and nsIFeedContainer. These interfaces describes the "published" and "updated" attributes, which can be useful to show only those items from the feeds within a selected time range, specified in hours.