| Index: appengine/swarming/elements/res/imp/botpage/bot-page-shared-behavior.html
|
| diff --git a/appengine/swarming/elements/res/imp/botpage/bot-page-shared-behavior.html b/appengine/swarming/elements/res/imp/botpage/bot-page-shared-behavior.html
|
| index d5f3df01e4c0c63608720cc2784161cb26f77444..b1b96ff1e2b6366c486fe78003f6bc9fb21b2242 100644
|
| --- a/appengine/swarming/elements/res/imp/botpage/bot-page-shared-behavior.html
|
| +++ b/appengine/swarming/elements/res/imp/botpage/bot-page-shared-behavior.html
|
| @@ -19,28 +19,6 @@
|
| // extending SwarmingBehaviors.CommonBehavior
|
| SwarmingBehaviors.BotPageBehavior = [SwarmingBehaviors.CommonBehavior, {
|
|
|
| - // timeDiffApprox returns the approximate difference between now and
|
| - // the specified date.
|
| - _timeDiffApprox: function(date){
|
| - if (!date) {
|
| - return "eons";
|
| - }
|
| - return sk.human.diffDate(date.getTime());
|
| - },
|
| -
|
| - // timeDiffExact returns the exact difference between the two specified
|
| - // dates. E.g. 2d 22h 22m 28s ago If a second date is not provided,
|
| - // now is used.
|
| - _timeDiffExact: function(first, second){
|
| - if (!first) {
|
| - return "eons";
|
| - }
|
| - if (!second) {
|
| - second = new Date();
|
| - }
|
| - return sk.human.strDuration((second.getTime() - first.getTime())/1000);
|
| - },
|
| -
|
| }];
|
| })()
|
| </script>
|
|
|