Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time format #59

Closed
aishahismail opened this issue Dec 8, 2015 · 1 comment
Closed

Time format #59

aishahismail opened this issue Dec 8, 2015 · 1 comment

Comments

@aishahismail
Copy link

function timePickerCallback(val) {
if (typeof (val) === 'undefined') {
console.log('Time not selected');
} else {
var selectedTime = new Date(val * 1000);
console.log('Selected epoch is : ', val, 'and the time is ', selectedTime.getUTCHours(), ':', selectedTime.getUTCMinutes(), 'in UTC');
}
}

at the code above, return value "val" is in what format? second?

@rajeshwarpatlolla
Copy link
Owner

It will return the epoch time. Please check the demo at http://rajeshwarpatlolla.github.io/TimePickerForIonicFramework/demo/#/tab/timepicker
Look at the console once you selected the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants