Support for single char 24h HH vs H #30

Merged
merged 4 commits into from Apr 6, 2013

Projects

None yet

2 participants

@buholzer
Contributor

I added support for a single H format which allows to have single character 24 hours formatting. Similar to the Java version (see below).

http://docs.oracle.com/javase/1.4.2/docs/api/java/text/SimpleDateFormat.html

H Hour in day (0-23) Number 0

Let me know if you want me to do anything else in regards to doc's or tests.

Best, Mirko

@phstc
Owner
phstc commented Apr 28, 2012

Hey @buholzer, thank you very much for the contribution! :)

Could you add a test in the Test file?

https://github.com/phstc/jquery-dateFormat/blob/master/Test.html

It will be awesome to test your H format and guarantee that the other formats still working.

Best

@phstc phstc merged commit 88a34ed into phstc:master Apr 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment