Skip to main content

new_date

Function new_date 

Source
pub fn new_date(days: I) -> K
Expand description

Constructor of q date object. Relabeling of kd.

ยงExample

use kdbplus::api::*;

#[no_mangle]
pub extern "C" fn create_date(_: K) -> K{
  // 1999.12.25
  new_date(-7)
}
q)nostradamus: `libapi_examples 2: (`create_date; 1);
q)nostradamus[]
1999.12.25