Shadowing Posted December 23, 2011 Share Posted December 23, 2011 I cant figure out how to add $recieved into this needs to take place of time hope someone knows how to do this what im doing is adding in the UNIX time i want to offset <?php $offset = date('m/d/Y/H:i:s', time()+$send1['time_offset']); ?> Quote Link to comment https://forums.phpfreaks.com/topic/253740-adding-a-variable-in-the-date-function/ Share on other sites More sharing options...
SergeiSS Posted December 23, 2011 Share Posted December 23, 2011 Maybe this http://ru.php.net/manual/en/book.datetime.php will help you. Quote Link to comment https://forums.phpfreaks.com/topic/253740-adding-a-variable-in-the-date-function/#findComment-1300820 Share on other sites More sharing options...
Shadowing Posted December 23, 2011 Author Share Posted December 23, 2011 I can never understand the manual cause it talks like this an example: Procedural style only: A DateTime object returned by date_create(). The function modifies this object. how can a noob even comphrend that Quote Link to comment https://forums.phpfreaks.com/topic/253740-adding-a-variable-in-the-date-function/#findComment-1300923 Share on other sites More sharing options...
SergeiSS Posted December 23, 2011 Share Posted December 23, 2011 I can never understand the manual cause it talks like this an example: Procedural style only: A DateTime object returned by date_create(). The function modifies this object. how can a noob even comphrend that It's up to you, of course... You have just 3 possibilities: (1) you will understand manuals or (2) you will pay to somebody who will teach you or (3) forget about programming. Nobody will explain you information from manuals (I mean first of all repeating of the information that is written in the manuals). It's not so difficult to understand it Read text, try to make an example. I know what I'm talking about. Many years ago I started to learn programming, it was language C. English is not my native language, I learn it and programming in the same time. And I know that manuals are the best sources of information. Forum can help you but it don't substitute manuals. Quote Link to comment https://forums.phpfreaks.com/topic/253740-adding-a-variable-in-the-date-function/#findComment-1300953 Share on other sites More sharing options...
Shadowing Posted December 23, 2011 Author Share Posted December 23, 2011 im not you though man Quote Link to comment https://forums.phpfreaks.com/topic/253740-adding-a-variable-in-the-date-function/#findComment-1300958 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.