Skip to content

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.

License

Notifications You must be signed in to change notification settings

ClydeDz/horoscope-nuget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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