Fixes to SWIG time functions, still working on it.