Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 2.38 KB

README.md

File metadata and controls

45 lines (35 loc) · 2.38 KB

Horoscope NuGet

A .NET library for zodiac signs. Get details on each zodiac sign, pass a date and know which zodiac sign it falls in or get a list of all zodiac signs. Now includes Chinese zodiac signs and elements!

NuGet NuGet Downloads Azure DevOps builds Azure DevOps tests

How to use

Installation

Library can either be directly downloaded from Nuget.org, OR installed via the NuGet Package Manager UI or via the Package Manager Console if you're using Visual Studio.

Command to install Horoscope NuGet via the Package Manager Console UI in Visual Studio shown below.

PM> Install-Package Horoscope 

Usage

Include the namespace in your program.

using Horoscope;

Then go ahead and consume it.

var zodiacSign = Zodiac.GetZodiacSignForDate(new DateTime(1950, 2, 12));

Another simpler option if all you need is the zodiac sign for a single date is:

var givenDateTime = new DateTime(1995, 8, 26);
var zodiacSign = givenDateTime.GetZodiacSign();

More examples

Horoscope.Zodiac
Horoscope.ChineseZodiac

Release notes

Find release notes here.

Credits

(c) 2018 Clyde D'Souza
Icon credits: Firkin