Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Pluralsight

Working with Date and Time in PHP

via Pluralsight

Overview

Date and time are so basic, that we often forget its complexity. Look into the functions and classes in PHP, to deal with all the different date and time formats used across the globe. See how PHP handles timezone and daylight savings.

Date and time are so basic, that we often forget its complexity. These are found everywhere, in all applications, be it the timestamp columns in the database, or logging data into the log files. The date format varies in different places. In this course, Working with Date and Time in PHP, you will familiarize yourself with foundational knowledge and gain the ability to use classes and functions to work with time and date. First, you will learn functions to work with time and date, which would be valid for everyone across any timezone. Next, you will discover how to deal with daylight saving. Finally, you will explore how to use dates when it comes to using MySQL with PHP. When you’re finished with this course, you will have the skills and knowledge to know how PHP handles the timezones and daylight saving, making the task even easier.

Syllabus

  • Course Overview 2mins
  • Getting Started with Date and Time in PHP 10mins
  • Getting Familiar with Basic Date and Time Functions in PHP 17mins
  • Understanding DateTime Class in PHP 28mins
  • Using TimeZones in PHP 34mins
  • Working with DateInterval and DatePeriod Class 26mins
  • Dealing with Database for Dates 17mins

Taught by

Annapurna Agrawal

Reviews

4.5 rating at Pluralsight based on 15 ratings

Start your review of Working with Date and Time in PHP

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.