Function kdb_c_api::ymd_to_days[][src]

pub fn ymd_to_days(year: I, month: I, date: I) -> I
Expand description

Convert ymd to the number of days from 2000.01.01.

Example

use kdb_c_api::*;
 
fn main(){
 
  let days=ymd_to_days(2020, 4, 1);
  assert_eq!(days, 7396);
 
}