port the time conversion service from share to groovy based