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

309 views
Skip to first unread message

Kim Kuen Tang

unread,
Jan 3, 2013, 7:51:39 AM1/3/13
to personal...@googlegroups.com

 

If you check the k.h file you will find that timestamp is stored as long long.

 

HTH,

Kim

 

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

 

Hi guys,

I was wondering, as nano-second time are a built-in type in kdb, how is it stored internally ?

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 ?

Is it using 64bits int ?

 

Regards

--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/personal-kdbplus/-/lQRHusLN2wwJ.
To post to this group, send email to personal...@googlegroups.com.
To unsubscribe from this group, send email to personal-kdbpl...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/personal-kdbplus?hl=en.

Jack Andrews

unread,
Jan 3, 2013, 8:05:40 AM1/3/13
to personal...@googlegroups.com
not the easiest thing to find!
http://code.kx.com/wiki/Reference/Datatypes

it made me realize the power of two when i worked out for how long you
can increment a 64 bit register before hitting the start value
Reply all
Reply to author
Forward
0 new messages