Home arrow PHP arrow Page 2 - Working with Dates and Times in PHP

Working with Dates and Times in PHP

In this article Hermawan will teach you how to work with the date and time functions in PHP in a way such that your site will not suffer from jet lag.

Author Info:
By: Hermawan Haryanto
Rating: 4 stars4 stars4 stars4 stars4 stars / 18
March 07, 2003
  1. · Working with Dates and Times in PHP
  2. · First Step
  3. · Display it to human readable date and time format
  4. · Make my own date time
  5. · Another method
  6. · My own Language

print this article

Working with Dates and Times in PHP - First Step
(Page 2 of 6 )

Now, the first step in our move is we have to know what value the time function in PHP produces. Run this code on your server:

print time();

You will see a line of numbers in your browser. That is the number of seconds since the epoch. The epoch was on January 1st 1970. This line of numbers is called a UNIX timestamp.

blog comments powered by Disqus

- Removing Singletons in PHP
- Singletons in PHP
- Implement Facebook Javascript SDK with PHP
- Making Usage Statistics in PHP
- Installing PHP under Windows: Further Config...
- File Version Management in PHP
- Statistical View of Data in a Clustered Bar ...
- Creating a Multi-File Upload Script in PHP
- Executing Microsoft SQL Server Stored Proced...
- Code 10x More Efficiently Using Data Access ...
- A Few Tips for Speeding Up PHP Code
- The Modular Web Page
- Quick E-Commerce with PHP and PayPal
- Regression Testing With JMeter
- Building an Iterator with PHP

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials