I am using Ionic Timepicker. When I select a time it's passing values like 75600 (here I have selected 09:00pm). How to actually retrieve a human readable string instead of an "epoch time" value?
Here's my code:
$scope.timePickerObject12Hour.inputEpochTime = val;
console.log(val);
// here i am getting 79200
var selectedTime = new Date();
var amPmHour = $filter('date')(selectedTime, 'hh');
console.log(amPmHour);
// here i am getting 07
console.log('Selected epoch is : ', val, 'and the time is ', selectedTime.getUTCHours(), ':', selectedTime.getUTCMinutes(), 'in UTC');
//here i am getting Selected epoch is : 75600 and the time is 16 : 5 in UTC