-
Notifications
You must be signed in to change notification settings - Fork 0
cDateISO::AddYears()
Rainer Stötter edited this page May 9, 2017
·
1 revision
public mixed libdatephp\cDate::AddYears(integer $diff)
- Namespace : libdatephp
- Class name: cDateISO
- This method is defined by libdatephp\cDate
AddYears() adds / subtracts $diff years to / from the managed date
Example:
use libdatephp;
$dt = new cDate( 11, 23, 2016 );
$dt->AddYears( - 2 )->AsSQL( );
- $diff integer - <p>the number of years to add / subtract</p>
This wiki page is part of the documentation of the PHP class library libdatephp