A simple Php program to print the time using the keyword time. By using this keyword we can print the time.In PHP, the time() function returns all of the information you need about the current date and time. It takes no parameters and returns an integer. The integer returned by time represents the number of seconds since midnight GMT on January 1, 1970. (). This is the UNIX epoch, and the time stamp is the number of seconds that have passed since then.