samoi Posted September 26, 2009 Share Posted September 26, 2009 Hello guys! I have a table that have records of time in unixtimestamp format which is yyyy-mm-dd hh:mm:ss I need to do some calculations by subtracting the time remaining from the current time until the record unixtimestamp()! or vise versa! I need the converting format! how to convert unixtimestamp to time() format! so I can easily do some code like this: $current = time(); $record = "select DueTime from table where ...etc"; $subtract = $record - $current; echo 'Your a bonus time remaining of '. $subtract; Help me please Quote Link to comment https://forums.phpfreaks.com/topic/175635-solved-help-me-converting-unixtimestamp-with-time-please/ Share on other sites More sharing options...
MadTechie Posted September 26, 2009 Share Posted September 26, 2009 see the Date() function Quote Link to comment https://forums.phpfreaks.com/topic/175635-solved-help-me-converting-unixtimestamp-with-time-please/#findComment-925482 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.