Function kdb_c_api::new_timespan[][src]

pub fn new_timespan(nanoseconds: J) -> K
Expand description

Constructor of q timespan object from nanoseconds. Relabeling of ktj.

use kdb_c_api::*;
 
#[no_mangle]
pub extern "C" fn create_timespan2(_: K) -> K{
  // -1D01:30:00.001234567
  new_timespan(-91800001234567)
}
q)duration: libc_api_examples 2: (`create_timespan2; 1);
q)duration[]
-1D01:30:00.001234567