Using the tcl clock technique seems to work fine also, so I am not sure that the whole sql_date/linear_date conversion thing is even necessary.