ENaddpattern function

Add a new time pattern