Function kdb_c_api::new_month [−][src]
pub fn new_month(months: I) -> K
Expand description
Create a month object from the number of months since kdb+ epoch (2000.01.01
).
This is a complememtal constructor of missing month type.
Example
use kdb_c_api::*; #[no_mangle] pub extern "C" fn create_month(_: K) -> K{ // 2010.07m new_month(126) }
q)create_month: `libc_api_examples 2: (`create_month; 1);
q)create_month[]
2010.07m