Skip to main content

new_time

Function new_time 

Source
pub fn new_time(milliseconds: I) -> K
Expand description

Constructor of q time object. Relabeling of kt.

ยงExample

use kdbplus::api::*;

#[no_mangle]
pub extern "C" fn create_time(_: K) -> K{
  // -01:30:00.123
  new_time(-5400123)
}
q)ancient: libc_api_examples 2: (`create_time; 1);
q)ancient[]
-01:30:00.123