Convert date to seconds.

Hi

I accept a date formatted as dd/mm/yyyy as an argument to an executable. i want to get the corresponding seconds for that date. is there any function or should i convert manually calculating from jan 1, 1970(right?)

--begin
beginAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
nietodConnect With a Mentor Commented:
use the mktime() function.  Use localtime() to convert back.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.