Matteo Scandolo | 680cd92 | 2016-01-26 17:21:39 -0800 | [diff] [blame^] | 1 | (function () { |
2 | "use strict"; | ||||
3 | |||||
4 | angular.module('cordGui') | ||||
5 | .service('Helpers', function(){ | ||||
6 | this.randomDate = function(start, end) { | ||||
7 | return new Date( | ||||
8 | start.getTime() + Math.random() * (end.getTime() - start.getTime()) | ||||
9 | ); | ||||
10 | } | ||||
11 | }); | ||||
12 | |||||
13 | }()); |