C libraries are the most common places you'll see overriding of date and datetime code, but even some pure ruby libraries do so.
This example is taken from ruby-ole, which is a ruby library that allows you to deal with those ugly Microsoft formats like pre-Office 2007 Word documents.
Ruby-ole has a FileTime class, which is a subclass of DateTime.
There are a couple things to note here.