Namespace

api/feed

api/feed

Classes

FeedCollection

Members

# static constant exports.Feeds

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

View Source api/feed/FeedCollection.ts, line 551

Methods

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

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

Parameters:
Name Type Description
a

The first date.

b

The second date.

View Source api/feed/FeedCollection.ts, line 21

The number of days between a and b.

number

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

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

Parameters:
Name Type Description
feed

The feed.

timestamp

A timestamp.

View Source api/feed/FeedCollection.ts, line 34

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

boolean