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

Display format #36

Closed
shantanuthatte opened this issue Mar 31, 2015 · 5 comments
Closed

Display format #36

shantanuthatte opened this issue Mar 31, 2015 · 5 comments

Comments

@shantanuthatte
Copy link

It would be great if we can define the format of the displayed text.

@walmik
Copy link
Owner

walmik commented Apr 1, 2015

Do you mean have the option to show a digital timer as well? For eg 00:15:30 instead of 15min 30sec ?

@shantanuthatte
Copy link
Author

Example:

$("#myTimer").timer({
    seconds: 100000,
    format: "%d days %h hr(s) %m min(s) %s sec(s)"
});

The ability to define the format the user wants to show. So for a digital one it could be:

$("#myTimer").timer({
    seconds: 10000,
    format: "%h:%m:%s"
});

Or for leading zeros:

$("#myTimer").timer({
    seconds: 100000,
    format: "%H:%M:%S"
});

@walmik
Copy link
Owner

walmik commented Apr 1, 2015

This is an excellent idea. Marking it as an enhancement.

@shantanuthatte
Copy link
Author

PR at #37

@shantanuthatte
Copy link
Author

Implemented with 6d4959f

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

No branches or pull requests

2 participants