AV1611 Posted July 10, 2006 Share Posted July 10, 2006 I know that strtotime("-4 hours") will give me unix time for four hours ago, but how would you find unix time for 1 sec after midnight of the current day?I think this will give me the time string, but how to convert it to unix time?$today=(Y.m.d);$tminus4=$today.' 00:00:00';// Quote Link to comment https://forums.phpfreaks.com/topic/14175-compute-time/ Share on other sites More sharing options...
redarrow Posted July 10, 2006 Share Posted July 10, 2006 <?$back=date("h")-1;$time=date("$back:i:s");echo $time;?> Quote Link to comment https://forums.phpfreaks.com/topic/14175-compute-time/#findComment-55538 Share on other sites More sharing options...
Daniel0 Posted July 10, 2006 Share Posted July 10, 2006 [code]<?php$timestamp = mktime(0,0,1,date('m'),date('d'),date('Y'));?>[/code]Edit: I read wrong, I thought you said before and not after. Quote Link to comment https://forums.phpfreaks.com/topic/14175-compute-time/#findComment-55553 Share on other sites More sharing options...
AV1611 Posted July 10, 2006 Author Share Posted July 10, 2006 My Heros... Quote Link to comment https://forums.phpfreaks.com/topic/14175-compute-time/#findComment-55568 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.