Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- angular.module('social-media-monitor').service("TimeService", function () {
- var service = this;
- service.getFormattedTime = function (x) {
- return moment(x).format('HH:mm');
- };
- service.getDate = function (dataArray, i) {
- if (dataArray != null) {
- if (!dataArray.length) {
- console.info('not found', i, dataArray);
- return 0;
- }
- return dataArray[i - 1].date;
- }
- return 0;
- };
- })
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement