(roundingFunction)
| 5434 | |
| 5435 | // This function allows you to set the rounding function for relative time strings |
| 5436 | function getSetRelativeTimeRounding(roundingFunction) { |
| 5437 | if (roundingFunction === undefined) { |
| 5438 | return round; |
| 5439 | } |
| 5440 | if (typeof roundingFunction === 'function') { |
| 5441 | round = roundingFunction; |
| 5442 | return true; |
| 5443 | } |
| 5444 | return false; |
| 5445 | } |
| 5446 | |
| 5447 | // This function allows you to set a threshold for relative time strings |
| 5448 | function getSetRelativeTimeThreshold(threshold, limit) { |
nothing calls this directly
no outgoing calls
no test coverage detected