Probably an easy question, how can I make a time sequence of time intervals between two times?
15:00:00 15:00:30 15:01:00 15:01:30 15:02:00
something like 15:00:00 + 00:00:30 ? 10
Probably an easy question, how can I make a time sequence of time intervals between two times?
15:00:00 15:00:30 15:01:00 15:01:30 15:02:00
something like 15:00:00 + 00:00:30 ? 10
15:00:00+00:00:30*til 10<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
Or more generically:<o:p></o:p>
<o:p> </o:p>
q)f:{[st;en;i] st+i*til 1+`long$(en-st)%i}<o:p></o:p>
q)f[15t;16t;00:00:30.000]<o:p></o:p>
15:00:00.000 15:00:30.000 15:01:00.000 15:01:30.000 15:02:00.000 15:02:30.000..<o:p></o:p>
q)f[.z.d;.z.d+10;1]<o:p></o:p>
2016.02.04 2016.02.05 2016.02.06 2016.02.07 2016.02.08 2016.02.09 2016.02.10 ..<o:p></o:p>
<o:p> </o:p>
(Just be careful not to mix data types in that one)<o:p></o:p>
<o:p> </o:p>
From: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] On Behalf Of Roni Hoffman
Sent: Thursday, February 4, 2016 11:52 AM
To: Kdb+ Personal Developers <personal-kdbplus@googlegroups.com>
Subject: [personal kdb+] Time Sequence<o:p></o:p>
<o:p> </o:p>
Probably an easy question, how can I make a time sequence of time intervals between two times?<o:p></o:p>
<o:p> </o:p>
15:00:00 15:00:30 15:01:00 15:01:30 15:02:00<o:p></o:p>
<o:p> </o:p>
something like 15:00:00 + 00:00:30 ? 10<o:p></o:p>
<o:p> </o:p>
<o:p> </o:p>
–
Submitted via Google Groups
I see, Thanks David