I have some problem with comparing dates. I need to compare more than DateTime.now
or record.updated_at
for 7 days.
I try do something like that: DateTime.now
- record.updated_at
but have result as that 143587.77856945992
or (14358777856939/8640000000000)
.
I dont understand what is that. Maybee need convert to Time
format or something else? Thanks
问问题
38 次