hetzner-cloud-php-sdk icon indicating copy to clipboard operation
hetzner-cloud-php-sdk copied to clipboard

Adding getCreatedDateTime()

Open ThomasLandauer opened this issue 4 years ago • 3 comments

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

ThomasLandauer avatar May 27 '21 19:05 ThomasLandauer

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).

LKaemmerling avatar Jun 22 '21 04:06 LKaemmerling

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

ThomasLandauer avatar Jun 22 '21 12:06 ThomasLandauer

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

LKaemmerling avatar Jun 23 '21 04:06 LKaemmerling