=?UTF-8?Q?=E2=80=9C92510111=E2=80=9D_convert_into_09:25:10.111?=

Hi all,

suppose,


q)t:(92510111i,102510111i)


I want to convert t into time types.but it is wrong,convert “92510111” into time types.


How do i get 09:25:10.111 10:25:10.111?


Can you help me?


Thanks,

Sky

kdb+ almost does it for you, but you have to pad to 9 characters.  Assuming the time values start at 0:

q)t:92510111 102510111 1i     

q)“T”$string t                                                                                                                                                                                                                         

-**:21:07.368 10:25:10.111 01:00:00.000

so:                                                                                                                                                                                                         

q)“T”$“0”^-9$'string t                                                                                                                                                                                                                 

09:25:10.111 10:25:10.111 00:00:00.001