Skip to main content

new_second

Function new_second 

Source
pub fn new_second(seconds: I) -> K
Expand description

Create a month object. This is a complememtal constructor of missing second type.

ยงExample

use kdbplus::api::*;

#[no_mangle]
pub extern "C" fn create_second(_: K) -> K{
  // -02:00:00
  new_second(-7200)
}
q)third: `libapi_examples 2: (`create_second; 1);
q)third[]
-02:00:00