Get time at beginning of a GMT day

$secondsSinceEpoch = 1353324514;

# How to get the time (in seconds) at the beginning of the next GMT day from the $secondsSinceEpoch
rgbcofAsked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
use Time::Local 'timegm_nocheck';
@dmy=(gmtime $secondsSinceEpoch)[3..5];
++$dmy[0];
print timegm_nocheck(0,0,0,@dmy);
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.