A generic type to decorate a given value with timestamp information.
let resource: Timestamped<Resource> = getResource()
if resource.createdBefore(Date.yesterady) {
print("Old resource. Needs refresh")
} else {
print("Still fresh: resource is \(resource.value)")
}