6 Dates
6 Dates
time()(timestamp)
• PHP’s time() function returns
current timestamp, giving us all
the information we need about
the current date and time.
•
• It requires no arguments and
returns an integer.
p
TASK # 61 – Getting Time() Worksho
Type the following code
Discuss the output
• The integer returned by time()
represents the number of seconds
elapsed since midnight GMT on January
1, 1970.
u s in g the
Try s given
e t e r
param ext slides
n
on the at date
to form s
time
DateTime object
DateTime object