Getting the Time Stamp with time()
PHP's
time() function gives you all the information that you
need about the current date and time. It requires no arguments but
returns an integer.
The integer returned by time() represents the number of seconds
elapsed since midnight GMT on January 1, 1970. This moment is known as
the UNIX epoch, and the number of seconds that have elapsed since then
is referred to as a time stamp.
It will produce following result:
This is something difficult to understand. But PHP offers excellent
tools to convert a time stamp into a form that humans are comfortable
with.
No comments:
Post a Comment