TithiTools 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package TithiTools --version 1.0.2                
NuGet\Install-Package TithiTools -Version 1.0.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TithiTools" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TithiTools --version 1.0.2                
#r "nuget: TithiTools, 1.0.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TithiTools as a Cake Addin
#addin nuget:?package=TithiTools&version=1.0.2

// Install TithiTools as a Cake Tool
#tool nuget:?package=TithiTools&version=1.0.2                

TithiTools

CI NuGet NuGet

TithiTools is a versatile and precise .NET Core library for calculating Tithis, an essential aspect of Hindu and Vedic lunar calendar systems. Easily determine lunar phases and auspicious times for religious and cultural events. Flexible, efficient, and open source.

What is a Tithi?

A Tithi is a fundamental concept in Hindu lunar calendars. It represents a specific lunar day or phase of the moon and is a key element in determining auspicious times for religious and cultural events.

Moon-Sun Angle The image above illustrates the 12-degree angle of separation between the moon and sun, which is used in Tithi calculations.

Installation:

TithiTools is available as a nuget package from nuget.org

dotnet add package TithiTools

Examples

You can use the TithiTools library in your C# application to calculate Tithis for a specific date range.

using TithiTools;

// Calculate Tithis within a date range
var tithis = TithiCalc.FindTithiInDateRange(startDate, endDate);

// Filter Tithis by specific indices
var filteredTithis = TithiCalc.FindTithiInDateRange(startDate, endDate, indexFilter: new HashSet<int> { 11, 26 });

// Set custom precision
var precisedTithis = TithiCalc.FindTithiInDateRange(startDate, endDate, precision: 0.0001d);

// Calculate angle between the sun and moon at specific time
var angle = TithiCalc.GetAngle(dateTime);

Contributing:

Contributions to the "TithiTools" library are welcome! Feel free to submit issues, feature requests, or pull requests to help improve the library.

License:

This project is licensed under the GNU License.

Acknowledgments:

Special thanks to the CoordinateSharp library for its contribution to celestial calculations in "TithiTools".

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.5 146 9/16/2023
1.0.4 145 9/15/2023
1.0.3 140 9/14/2023
1.0.2 150 9/14/2023
1.0.1 144 9/14/2023