kdb - Dot notation with dates -


i'm trying understand how q defines dot notation dates.

case 1: temporal variable issue

for ex. if following day date:

q) d:2014.06.14  q) d.dd      14 

but if try doing without temporal variable:

q) (2014.06.14).dd   error: .dd 

question: why requires variable apply dot notation.

case 2: inside functions:

dot notation date doesn't work inside functions.

q) {x.mm}[2014.01.01]  error: x.mm 

solution casting

q){`mm$x}[2014.01.01]     1i 

question: why temporal variable property doesn't work inside function?

i want understand behaviour of dot notation.

dot notation applies things "names" in sense of belonging workspace tree (and columns in qsql queries). essentially, if can't get`a successfully, won't able a.dd either.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -