Skip to content

cDateTime::Hour()

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

Method Hour( )

 public   integer libdatephp\cDateTime::Hour()

Hour( ) returns the hour part of the timestamp

Example:

use libdatephp;

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

echo $dtm->Hour( );

Returns

integer the hour part of the timestamp

Clone this wiki locally