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';// 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;?> 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. 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... Link to comment https://forums.phpfreaks.com/topic/14175-compute-time/#findComment-55568 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.