Support for different time formats