Build your PHP skills while solving real-world programming challenges. Learn how to make webpages time-zone sensitive and to build a PHP-driven time zone calculator.
- View Offline
- Exercise Files
- [Voiceover] Welcome to Easy PHP Projects: Time Zone Conversion. My name is Kevin Skoglund. This course is part of the Easy PHP Project series. These courses are designed to present projects that require only basic PHP knowledge. I will demonstrate some techniques and best practices that can help you to build your skills. The course projects can be completed in a short amount of time which allows you to start and stop as your schedule allows. In this course we will use PHP to preform conversions between time zones. We will start by getting an understanding of how time zones work and how they came to be.
We will explore the functions and classes that PHP provides us for working with dates and time zones. We will create a form for users to select their preferred time zone and then we will create web pages which dynamically display dates in the time zone the user selected. We will create a time zone calculator capable of converting any given time between any two time zones. Let's get started creating some easy PHP projects.
- Understanding the history and purpose of time zones
- Setting a default time zone in PHP
- Using the PHP DateTime and DateTimeZone classes
- Working with daylight saving time transitions
- Allowing users to select their time zone
- Displaying times in the user's preferred time zone
- Calculating the current times of major cities
- Creating a complete time zone calculator
Skill Level Beginner
1. About Time Zones
2. Default Time Zone
3. Working with Time Zones in PHP
4. User Time Zone Selection
5. Respect the User's Time Zone
6. Current World Times
7. Time Zone Calculator
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.