correct typedef declaration
added dt_length_of_{year,quarter,month}