def get_creation_date ( self , bucket : str , key : str , ) -> datetime . datetime : blob_obj = self . _get_blob_obj ( bucket , key ) return blob_obj . time_created
python boto3 s3 get latest object date
Retrieves the creation date for a given key in a given bucket . : param bucket : the bucket the object resides in . : param key : the key of the object for which the creation date is being retrieved . : return : the creation date
def get_creation_date(
            self,
            bucket: str,
            key: str,
    ) -> datetime.datetime:
        """
        Retrieves the creation date for a given key in a given bucket.
        :param bucket: the bucket the object resides in.
        :param key: the key of the object for which the creation date is being retrieved.
        :return: the creation date
        """
        blob_obj = self._get_blob_obj(bucket, key)
        return blob_obj.time_created