Time::second()

Returns the second number.

Table of Contents
  1. Description
  2. Example

Description

Time::second(): string;

This method returns the second number, 2 digits with leading zeros.

Example

$time = new Time;

echo $time->second(); // Returns `'33'`

Time::day()

Returns the day number of the week, or the day name.

Time::format()

Returns the date/time formatted according to the given format.

Time::i()

Returns the date/time formatted according to the given pattern.

Time::name()

Returns the date/time format as a valid file name.

Time::second()

Returns the second number.

Time::to()

Converts current date/time zone to other date/time zone.