UNPKG

the-shepherd

Version:
79 lines (75 loc) 1.61 kB
// Generated by CoffeeScript 2.5.1 (function() { var $, convert; $ = require('bling'); module.exports = convert = function(n) { var f, j, k, o, obj, ref; try { return obj = { seconds: { to: { ms: function() { return n * 1000; }, minutes: function() { return n / 60; }, hours: function() { return n / 3600; } } }, ms: { to: { seconds: function() { return n / 1000; }, minutes: function() { return n / 60000; }, hours: function() { return n / 3600000; } } }, minutes: { to: { ms: function() { return n * 60000; }, seconds: function() { return n * 60; }, hours: function() { return n / 60; } } }, hours: { to: { minutes: function() { return n * 60; }, seconds: function() { return n * 3600; }, ms: function() { return n * 3600000; } } } }; } finally { for (k in obj) { o = obj[k]; ref = o.to; for (j in ref) { f = ref[j]; $.defineProperty(o.to, j, { get: f }); } } } }; }).call(this);