modifyed HasKAL.cal to expose functions in TimeUtils