Function of ruby to get cdbl(date)

hello everyboy

i ask if you know what is the equivalent ruby function of the cdbl(date)
in sql sentences,

i need to get the value double of a date

please