api/feed

api/feed

Classes

FeedCollection

Members

(static, constant) exports.Feeds

Source:

Provides the singleton instance of this class to all other entities.

Methods

(static) dateDiffInDays(a, b) → {number}

Source:

Returns the number of whole days between date a and b.

Parameters:
Name Type Description
a

The first date.

b

The second date.

Returns:

The number of days between a and b.

Type
number

(static) withinPastDay(feed, timestamp) → {boolean}

Source:

Returns true if the timestamp associated with feed is within a day of timestamp.

Parameters:
Name Type Description
feed

The feed.

timestamp

A timestamp.

Returns:

True if feed's timestamp is within a day of timestamp.

Type
boolean