trentrichardson/jQuery-Timepicker-Addon — pull request #332 by aparshin (2012-03-06 20:56:33+00:00)
Title: Add $.datepicker.parseDateTime(), $.datepicker.parseTime() functions

Pull request is related to issue #323.

Some notes:

* parseDateTime() syntax is rather confused - date format/settings are separated from time format/settings. Looks like jQuery datepicker should be patched to fix that. Maybe, some kind of custom lexem parsers for datepicker.parseDate()? Anyway, current hack with error catching should be replaced with more stable method...

* I created several private static functions with parameters instead of Timepicker methods to use them without instance creation. Maybe methods, that work with time object should be separated from calendar's GUI extending/modification into new class. That class can be initialized form string (parseTime() method) and exported back (formatTime()).

* I don't understand this line of code:

```javascript
this.hour = (parseFloat(treg[order.h]) + 12).toFixed(0);
```
How hour can be not integer? I have replaced that with ```Number(treg[order.h]) + 12```. Is that ok?

* Lexem pairs ("h", "hh"), ("m", "mm"), ("t", "tt") etc. are not distinguished by current parser. Numbering restrictions (for example h < 24) are not validated.