make extend modify the original object. Useful for e.g. extend(function() { ... }, { foo:'bar' })
add time.getLocalTime/getLocalDay/getLocalHourOfDay