Closed rodrigonull closed 2 years ago
@rodrigonull Thanks for this contribution. Do all the methods return a python datetime object? Can we add a test for that?
Only AWS and Azure return a datetime object. GCP and OpenStack return an ISO 8601 string. I was wondering if we should convert the string to datetime, but that probably would require to import a third party library, like dateutil, because I think only in python 3.7 a method was added that allows to convert a ISO 8601 string to datetime. What do you think?
I think only in python 3.7 a method was added that allows to convert a ISO 8601 string to datetime. What do you think?
I think we could go for that, since support for python<3 has already been dropped, and most people are likely above 3.7. Alternatively, we could return an ISO 8601 string if that's easier.
Released in v3.1.0
Add the ability to retrieve the VM instance creation time for all supported providers.