The sidekiq dead queue object has a an item['created_at'] that is an decimal (of unknown meaning is it julian? is it seconds is it a unix time stamp?)
However on the object there is a method for created_at
that will return a Date object.
ds = Sidekiq::DeadSet.new
size = ds.size
ds.each_with_index do |job- indx|
print "\r #{indx} of #{size}"
if job.created_at.to_datetime <= 1.month.ago
job.delete
end
end