Back to Date class

Method toUnix

public int
toUnix
()
Gets the date as UNIX time stamp.
Returns
  • int The date as a UNIX timestamp.
Since
  • 1.7.0
Class: Date
Project: Joomla

Method toUnix - Source code

/**
 * Gets the date as UNIX time stamp.
 *
 * @return  integer  The date as a UNIX timestamp.
 *
 * @since   1.7.0
 */
public function toUnix()
{
    return (int) parent::format('U');
}