-
Notifications
You must be signed in to change notification settings - Fork 0
cDateTime::Year()
Rainer Stötter edited this page Apr 28, 2017
·
9 revisions
public integer libdatephp\cDateTime::Year()
- Namespace : libdatephp
- Class name: cDateTime
- This method is defined by libdatephp\cDateTime
Year( ) returns the four-digit year part of the timestamp
Example:
use libdatephp;
$dtm = new cDateTime( '2016-12-22 05:00:00' );
echo $dtm->Year( );
integer the year part of the timestamp
This wiki page is part of the documentation of the PHP class library libdatephp