Hour interval (first step)

Good night!
Merry Christmas!

I need: 10 items (random) converted to hours and minutes (from 0 to 2 hours)

I coded:

q) asc 17h$10?0D2

`s#00:07 00:22 00:26 00:44 00:50 01:00 01:01 01:11 01:16 01:35

I need: 10 items (random) converted to hours and minutes (from 3h10 to 17h25)

I coded:

q)   asc 10?15:10+til`int$17:25 - 15:10

`s#15:12 15:22 15:40 15:47 15:55 16:12 16:12 16:43 16:58 17:18

Is there a better way to code to get these items?

Thank you for your attention.

Hi,
I would simply do:

q) asc 10?02:00

q) asc 03:10+10?17:25-03:10

András

thank you so much.
I’ll test now.

Em sáb, 26 de dez de 2020 12:18, András D?tsch <dotsch@gmail.com> escreveu:

Hi,
I would simply do:

q) asc 10?02:00

q) asc 03:10+10?17:25-03:10

András