How can I check the local image is uptodate with registry image?

I would like to find out the latest timestamp for an image in a private Docker registry using the v2 API without first pulling the image to my local and compare it into local image created date. is that possible with script or curl with awk ?

Source: StackOverflow