コード例 #1
0
 /// <summary>
 /// Gets the date of <strong>Holy Saturday</strong>, which falls on the Saturday before <strong>Easter</strong>.
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>Holy Saturday</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Holy_Saturday</cref>
 /// </see>
 public static DateTime GetHolySaturday(int year)
 {
     return(CalendarUtils.GetHolySaturday(year));
 }
コード例 #2
0
 /// <summary>
 /// Gets the date of <strong>Easter Monday</strong>, which falls on the Monday after <strong>Easter</strong>.
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>Easter Monday</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Easter_Monday</cref>
 /// </see>
 public static DateTime GetEasterMonday(int year)
 {
     return(CalendarUtils.GetEasterMonday(year));
 }
コード例 #3
0
 /// <summary>
 /// Gets the date of <strong>Moundy Thursday</strong>, which falls on the Thursday before <strong>Easter</strong>.
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>Moundy Thursday</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Maundy_Thursday</cref>
 /// </see>
 public static DateTime GetMoundyThursday(int year)
 {
     return(CalendarUtils.GetMoundyThursday(year));
 }
コード例 #4
0
 /// <summary>
 /// Gets the date of <strong>Good Friday</strong>, which falls on the Friday before <strong>Easter</strong>.
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>Good Friday</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Good_Friday</cref>
 /// </see>
 public static DateTime GetGoodFriday(int year)
 {
     return(CalendarUtils.GetGoodFriday(year));
 }
コード例 #5
0
 /// <summary>
 /// Gets an instance of <see cref="DateTime"/> representing <strong>Groundhog Day</strong> (2nd of February).
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>Groundhog Day</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Groundhog_Day</cref>
 /// </see>
 public static DateTime GetGroundhogDay(int year)
 {
     return(CalendarUtils.GetGroundhogDay(year));
 }
コード例 #6
0
 /// <summary>
 /// Gets an instance of <see cref="DateTime"/> representing <strong>Saint Patrick's Day</strong>. Saint
 /// Partick's Day is a cultural and religious celebration held on 17 March, the traditional death date of
 /// Saint Patrick, the foremost patron saint of Ireland.
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>Saint Patrick's Day</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Saint_Patrick's_Day</cref>
 /// </see>
 public static DateTime SaintPatricksDay(int year)
 {
     return(CalendarUtils.SaintPatricksDay(year));
 }
コード例 #7
0
 /// <summary>
 /// Gets an instance of <see cref="DateTime"/> representing <strong>New Year's Day</strong> (1st of January).
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>New Year's Day</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/New_Year's_Day</cref>
 /// </see>
 public static DateTime GetNewYearsDay(int year)
 {
     return(CalendarUtils.GetNewYearsDay(year));
 }
コード例 #8
0
 /// <summary>
 /// Gets an instance of <see cref="DateTime"/> representing the date of <strong>Boxing Day</strong> (26th of December).
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>Boxing Day</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Boxing_Day</cref>
 /// </see>
 public static DateTime GetBoxingDay(int year)
 {
     return(CalendarUtils.GetBoxingDay(year));
 }
コード例 #9
0
 /// <summary>
 /// Gets the date of <strong>Palm Sunday</strong>, which falls on the Sunday before <strong>Easter</strong>.
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>Palm Sunday</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Palm_Sunday#Observance_in_the_liturgy</cref>
 /// </see>
 public static DateTime GetPalmSunday(int year)
 {
     return(CalendarUtils.GetPalmSunday(year));
 }
コード例 #10
0
 /// <summary>
 /// Gets an instance of <see cref="DateTime"/> representing the date of <strong>Christmas Day</strong> (25th of December).
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>Christmas Day</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Christmas_Day</cref>
 /// </see>
 public static DateTime GetChristmasDay(int year)
 {
     return(CalendarUtils.GetChristmasDay(year));
 }
コード例 #11
0
 /// <summary>
 /// Gets the date of <strong>Ascension Day</strong>, which is celebrated on a Thursday, the fortieth day of
 /// <strong>Easter</strong> (the 6th Thursday after <strong>Moundy Thursday</strong>).
 /// </summary>
 /// <param name="year">The year.</param>
 /// <returns>An instance of <see cref="DateTime"/> representing the date of <strong>Ascension Day</strong>.</returns>
 /// <see>
 ///     <cref>https://en.wikipedia.org/wiki/Feast_of_the_Ascension</cref>
 /// </see>
 public static DateTime GetAscensionDay(int year)
 {
     return(CalendarUtils.GetAscensionDay(year));
 }