Added kv-pairs->map.
Some datetime range related helpers.