This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Data.SqlTypes; | |
using System.IO; | |
using System.Text; | |
using Microsoft.SqlServer.Server; | |
[Serializable] | |
[SqlUserDefinedAggregate( | |
Format.UserDefined, | |
IsInvariantToNulls = true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Get Catholic easter for requested year | |
/// </summary> | |
/// <param name="year">Year of easter</param> | |
/// <returns>DateTime of Catholic Easter</returns> | |
public static DateTime GetCatholicEaster(int year) | |
{ | |
var month = 3; | |
var a = year % 19 + 1; |
OlderNewer