LKDevelopment / hetzner-cloud-php-sdk

A PHP SDK for the Hetzner Cloud API
MIT License
107 stars 52 forks source link

Adding getCreatedDateTime() #77

Open ThomasLandauer opened 3 years ago

ThomasLandauer commented 3 years ago

What about a convenience function that returns a \DateTime out of the box?

LKaemmerling commented 3 years ago

Hey @ThomasLandauer,

i like the idea! :) Maybe we should make it a trait, as all resources have at least a created and an updated timestamp (some resources have a bit more).

ThomasLandauer commented 3 years ago

Yeah, even better! But I have to little overview for this, so you'd need to set it up.

LKaemmerling commented 3 years ago

It is basically everywhere created & updated. Only images also contain a deprecated and a deleted timestamp :)