Skip to main content

kd

Function kd 

Source
pub unsafe extern "C" fn kd(date: I) -> K
Expand description

Constructor of q date object.

ยงExample

use kdbplus::api::*;
use kdbplus::api::native::*;

#[no_mangle]
pub extern "C" fn create_date(_: K) -> K{
  // 1999.12.25
  unsafe{kd(-7)}
}
q)christmas_at_the_END: libc_api_examples 2: (`create_date; 1);
q)christmas_at_the_END[]
1999.12.25