Function kdb_c_api::new_datetime[][src]

pub fn new_datetime(days: F) -> K
Expand description

Constructor of q datetime object from the number of days since kdb+ epoch (2000.01.01). Relabeling of kz.

use kdb_c_api::*;
 
#[no_mangle]
pub extern "C" fn create_datetime(_: K) -> K{
  // 2015.03.16T12:00:00:00.000
  new_datetime(5553.5)
}
q)omega_date: libc_api_examples 2: (`create_datetime; 1);
q)omega_date[]
2015.03.16T12:00:00.000