|
|
|
|
|
|
| |
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.Let's discuss dates and times and how we them in PHP projects. The date and time functions allow you to use the time of the server that PHP running on so keep in mind that this function will depend on the local setting of your server.
Working with Dates and Times in PHP - First Step
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: |
| |
|
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.
Read More... |
|
| |
| Date Arithmetic With MySQL Categories : PHP, Databases, MySQL, Date Time | | | Generating One-Time URLs with PHP Categories : PHP, URLs | | | 10 PHP Functions I Bet You Didn't Know About! Categories : PHP, PHP Functions, Filesystem, Arrays, Errors and Logging | | | Data, its presentation and user interface forms Categories : PHP, XML, User Interface | | | Using the .NET Assembly in PHP Categories : PHP, .NET | | | PHP 101 Part 8 of 15 : Databases and Other Animals Categories : PHP, Beginner Guides, Databases | | | Saving Images in MySQL Categories : MySQL, PHP, Graphics, Databases | | | PHP References Explained Categories : PHP References, PHP | | | Web Development With PHP FastTemplate Categories : PHP, Templates, FDF | | | Beginners guide to PHP and MySQL Categories : PHP, Beginner Guides, Databases, MySQL, Installation | | | Logging with PHP Categories : PHP, Log Files | | | Building A Persistent Shopping Cart With PHP and MySQL Categories : PHP, MySQL, Databases, Ecommerce | | | Who's Linking? Categories : PHP, Beginner Guides, To PHP | | | Sockets and PHP Categories : PHP, Sockets | | | Creating Auto-incrementing ID Fields with PHP and Oracle Categories : PHP, PHP options/info, Databases, Oracle | |
| |
|
|