[BZ-1096243] make temporal operators to work with literals