pub unsafe extern "C" fn kz(datetime: F) -> KExpand description
Constructor of q datetime object from the number of days since kdb+ epoch (2000.01.01).
use kdbplus::api::*;
use kdbplus::api::native::*;
#[no_mangle]
pub extern "C" fn create_datetime(_: K) -> K{
// 2015.03.16T12:00:00:00.000
unsafe{kz(5553.5)}
}q)omega_date: libc_api_examples 2: (`create_datetime; 1);
q)omega_date[]
2015.03.16T12:00:00.000