Typescript Add Function In Arraylist Contains Time