Codeigniter, Web Development
Hello Friends,
Welcome to Part 37 of the CodeIgniter 4 Tutorial Series in Urdu/Hindi. Today in this CodeIgniter video tutorial, we are going to learn about How to Use DateTime Class with some Examples.
CodeIgniter provides a fully-localized, immutable, date/time class that is built on PHP’s DateTime object but uses the Intl extension’s features to convert times across timezones and display the output correctly for different locales. This class is the Time class and lives in the CodeIgniter\I18n namespace.
Since the Time class extends DateTime, if there are features that you need that this class doesn’t provide, you can likely find them within the DateTime class itself.