•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 402,969 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,627 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 132 | Replies: 5 | Solved
![]() |
•
•
Join Date: Jun 2008
Location: Phoenix, AZ
Posts: 601
Reputation:
Rep Power: 2
Solved Threads: 53
•
•
Join Date: Jun 2007
Location: Valley Center, Kansas
Posts: 550
Reputation:
Rep Power: 3
Solved Threads: 55
•
•
•
•
Ok, so then 1 minute would be written as 60 and 1 hour as 3600 and 1 day as 86400?
PHP can measure time in seconds using the time() function.
http://www.php.net/time
or you can use microtime() which is a measure of time in microseconds.
http://www.php.net/manual/en/function.microtime.php
The PHP timestamp is a measure of the number of seconds (or microseconds with microtime) that have elapsed since the Unix Epoch (January 1 1970 00:00:00 GMT). So if you want to work with dates before the Epoch you will have to cater for that in your code. It also cannot measure dates in the future that require more bits then allocated for its datatype - not sure what that date is exactly.
Therefore, normally the PHP time functions are used to get the current date, and make calculations. But if you want to save the resulting date, its better to save it as an actual date if its range may lie outside the limitation of the PHP timestamp.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- php + mysql for web sms (PHP)
- Time complexity of algorithm (Computer Science and Software Design)
- Unlimited Features, Amazing Prices Private Label Windows Reseller Hosting! (Web Hosting Deals)
- Open In New Window Php (PHP)
- I need a great web designer and proffesional PHP Coder ~ 10k project (Web Development Job Offers)
- Start your own hosting company for $4.99/mo - Paypal Accepted (Web Hosting Deals)
- [$29.9] Auction PHP Website For Sale (Websites for Sale)
- $0.19/month Domain Hosting - Windows Reseller Hosting (Web Hosting Deals)
- PHP-Nuke Tutorial #1: Altering the Header Tags (PHP)
Other Threads in the PHP Forum
- Previous Thread: help please
- Next Thread: video gallery


Linear Mode