Certificate date validation - Openssl

This is a discussion on Certificate date validation - Openssl ; This is a multi-part message in MIME format.
------_=_NextPart_001_01C53AD4.487CFBB9
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
How do I check to see how many days are left for the validity of a
certificate. Is there a openssl command which tells me the ...

style=3D'font-size:10.0pt;
font-family:Arial'>How do I check to see how many days are left for the
validity of a certificate. Is there a openssl command which tells me the =
days
or time left? >>

style=3D'font-size:10.0pt;
font-family:Arial'>> >

style=3D'font-size:10.0pt;
font-family:Arial'>X509_cmd_current_time returns a positive integer if a
certificate is till valid? What does this signify? Is there a way to =
convert
this to the time left?>>

style=3D'font-size:10.0pt;
font-family:Arial'>> >

style=3D'font-size:10.0pt;
font-family:Arial'>What I am trying to do is write a app to check the
certificate and give me the days left.>>