added support for afterTime and beforeTime constraints