GetDayOfYear() public static method

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