Points for ozo

thanks for your input into the "time" question
Who is Participating?
ozoConnect With a Mentor Commented:
You're welcome.
I'm not sure if your question was completely answered,
If we consider 1971-11-03 to be the date of unix inception
Then you can find the local number of days since then with

use Time::Local;
print int(((time)-$epoch)/86400);

#But to account for possible daylight savings time shifts,
#whether on the current day, the epoch day, or between,
#you may need something like:
print int(((time+(12-(localtime)[2])*3600)-$epochnoon+43200)/86400)
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.