da,
I'd take a way of changing the returning procedure.

instead of the function-name use:
return $splittime[0]
endfunction

the class thing is anyway something I would like to see more...

to have class-library (example time) which has functions (gethours) inside it and could be called time.gethours...
_________________________
!

download KiXnet