UNIX time stamp
Handling dates in PHP
Getting the current date
Converting a string into a date
Formatting dates and times
In this chapter, you will learn how to parse and manipulate dates and times in PHP. Handling dates and times is an important day-to-day skill for many PHP programmers. You will learn how to generate times from various date formats and multiple ways of formatting dates in strings.
In PHP, you deal with dates and times in three basic formats:
UNIX time stamps
Internally, PHP uses UNIX time stamps, which are the standard method of telling time on ...