MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / getSetRelativeTimeRounding

Function getSetRelativeTimeRounding

tests/test_code/js/moment/moment.js:5436–5445  ·  view source on GitHub ↗
(roundingFunction)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected