GetMonth() public static method

The method gives the number of the month of the specified date.
public static GetMonth ( System time ) : int
time System The /// that specifies a /// date. ///
return int
コード例 #1
0
 /// <summary>Returns the month in the specified <see cref="T:System.DateTime" />.</summary>
 /// <returns>An integer from 1 to 12 that represents the month in the specified <see cref="T:System.DateTime" />.</returns>
 /// <param name="time">The <see cref="T:System.DateTime" /> to read. </param>
 public override int GetMonth(DateTime time)
 {
     return(CCGregorianCalendar.GetMonth(time));
 }
コード例 #2
0
 /// <summary>Returns the month in the specified <see cref="T:System.DateTime" />.</summary>
 /// <returns>An integer from 1 to 12 that represents the month in the specified <see cref="T:System.DateTime" />.</returns>
 /// <param name="time">The <see cref="T:System.DateTime" /> to read. </param>
 public override int GetMonth(DateTime time)
 {
     this.M_CheckDateTime(time);
     return(CCGregorianCalendar.GetMonth(time));
 }