making Interval time format handling thread-safe