You could use a jquery selector that gets both of the controls, such as:
$("[id^='timepicker']"
http://api.jquery.com/category/selectors/[
^]
However, I would not suggest it simply because it will not be clear what is happening. Just move all your function code into an explicit function and then wire both controls up separately calling that function.