rasstaggregator v1.0.0-beta1 RaSStaggregator.Feed
Represents a feed and works with it.
Summary
Functions
Compares two feed entries and determines which one was published in an earlier point in time
Periodically parses a feed in an infinite loop
Types
Functions
Compares two feed entries and determines which one was published in an earlier point in time.
Returns false
if the first feed was published in an earlier point in time and
true
otherwise.
Parameters
first
- A first feed entry.second
- A second feed entry.
Examples
iex> first = %FeederEx.Entry{updated: “Thu, 27 Apr 2017 10:00:00 +0200”} iex> second = %FeederEx.Entry{updated: “Thu, 27 Apr 2017 11:00:00 +0200”} iex> RaSStaggregator.Feed.compare_datetimes first, second false iex> RaSStaggregator.Feed.compare_datetimes second, first true iex> RaSStaggregator.Feed.compare_datetimes first, first true