Logo Lanfrica

yareda/EthiopicCalendar

Type de record:

software
Créateur:
yar
Hôte:
Ethiopic date conversion in C# based on Julian Day Numbers Ethiopic date conversion in C# based on JDN ============ A class library for converting Ethiopian dates to Gregorian and vice versa. The algorithm is based on Julian Day Numbers (JDN). The C# version is a port of the Java one found at ethiopic.org (ethiopic.org). #### Usage private EthiopicCalendar.Calendar ec = new Calendar(); var selected = this.dateTimePicker1.Value; // Using the ec instance of the Calendar class textBox.Text = ec.GregorianToEthiopic(selected.Date); // Directly using method chaining label.Text = new EthiopicDateTime(selected.Date).ToString(); #### More Resources * Julian Day Numbers (hermetic.ch) * The Ethiopic Calendar (ethiopic.org) * A compilation of resources for Ethiopic date conversion (addisagile.wordpress.com)

Languages