time parser with more functions