Skip to content

cDateTime::Second()

Rainer Stötter edited this page Apr 28, 2017 · 9 revisions

Method Second( )

 public   integer libdatephp\cDateTime::Second()

Second( ) returns the seconds part of the timestamp

Example:

use libdatephp;

$dtm = new cDateTime( '2016-12-22 05:00:00' );

echo $dtm->Second( );

Returns

integer the seconds part of the timestamp

Clone this wiki locally