UNPKG

@incdevco/framework

Version:
32 lines (20 loc) 462 B
/* global angular moment */ angular.module('epoch', []) .filter('epoch', [ '$filter', function ($filter) { return function (epoch, format) { var date; if (epoch) { date = new Date(epoch * 1000); return $filter('date')(date, format); } return null; }; } ]); angular.module('epoch') .run([ '$templateCache', function ($templateCache) {} ]);