Classes
Members
# static constant exports.Feeds
Provides the singleton instance of this class to all other entities.
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. |
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. |
True if feed's timestamp is within a day of timestamp.
boolean