AW: [personal kdb+] How are nanosecond timestamp stored by kdb

<o:p> </o:p>

If you check the k.h file you will find that timestamp is stored as long long.<o:p></o:p>

<o:p> </o:p>

HTH,<o:p></o:p>

Kim<o:p></o:p>

<o:p> </o:p>

Von: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] Im Auftrag von statquant
Gesendet: Donnerstag, 3. Januar 2013 12:03
An: personal-kdbplus@googlegroups.com
Betreff: [personal kdb+] How are nanosecond timestamp stored by kdb<o:p></o:p>

<o:p> </o:p>

Hi guys,<o:p></o:p>

I was wondering, as nano-second time are a built-in type in kdb, how is it stored internally ?<o:p></o:p>

A time is stored in four bytes and is denoted by hh:mm:ss.uuu (as per http://code.kx.com/wiki/JB:QforMortals2/atoms#time), but what about nanos ?<o:p></o:p>

Is it using 64bits int ?<o:p></o:p>

<o:p> </o:p>

Regards<o:p></o:p>


Submitted via Google Groups

not the easiest thing to find! http://code.kx.com/wiki/Reference/Datatypesit made me realize the power of two when i worked out for how long youcan increment a 64 bit register before hitting the start value