feature(#5188): refactor patterns and move time structures from types to separate canopsis/time package