R/daysbetween.R

Defines functions daysbetween

Documented in daysbetween

# Number of days between date1 and date2, date as string DD.MM.YYYY.
daysbetween <- function(d1,d2) {
	
	res <- .C("Cdaysbetween",date1=as.character(d1),date2=as.character(d2),ndays=integer(1))

	return(res$ndays)
}

Try the pheno package in your browser

Any scripts or data that you put into this service are public.

pheno documentation built on Jan. 23, 2026, 5:06 p.m.