Methods
(private, inner) formatDate(date) → {string}
Converts a Date object into a formatted string suitable for adding a task
Parameters:
Name | Type | Description |
---|---|---|
date |
Date | Date to be formatted |
Returns:
ISO string with Z replaced to '+0000'
- Type
- string
(private, inner) validateCache(date, maxAgeInMinutes) → {boolean}
Checkes whether the current cache has not expired based on its last update date and its max
age (in minutes)
Parameters:
Name | Type | Description |
---|---|---|
date |
Date | Date of cache last update |
maxAgeInMinutes |
Number | Maximum number of minutes that can pass before the cache is invalidated |
Returns:
Whether the cache is still valid
- Type
- boolean