'How do I generate a list of times by minute in KDB?

Let's say I have two datetimespans:

s: 2019.06.06D11:00:00.000000000
e: 2022.03.01D23:53:00.000000000

What would be the cleanest way to get a list of every inclusive minute between these two? (casting to z might be easier).

kdb


Solution 1:[1]

I solved my own issue with a while.

(e>)(+[00:01])\s

If there is a better way, please let me know!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 cjm2671