deprecated; use timeparse instead.