System.Globalization.CCGregorianCalendar.GetYear C# (CSharp) Method

GetYear() public static method

The method gives the number of the year of the specified date.
public static GetYear ( System time ) : int
time System The /// that specifies a /// date. ///
return int
	public static int GetYear(System.DateTime time) {
		return year_from_fixed(CCFixed.FromDateTime(time));
	}

Usage Example

Example #1
0
 public override int GetYear(DateTime time)
 {
     return(CCGregorianCalendar.GetYear(time));
 }