Dagsetningar 1.0.1

This package contains information on Icelandic dates.  You supply the date and the class will find out if there is an icelandic date which happens on this date.  You can use this class in your C# projects but its main functions where created in c++.

Install-Package Dagsetningar -Version 1.0.1
dotnet add package Dagsetningar --version 1.0.1
<PackageReference Include="Dagsetningar" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dagsetningar --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

How to use the package

After creating a console windows application

You could list all the dates Icelanders are concerned with.
This includes dates like "Páskadagur" (Easter) and "Bóndadagur" (Husband day).
Where the Páskadagur is a Holiday but the Bóndadagur is not.

In the example below we are creating a string containing a array of Json objects.
Which can be sent directly and de-serialized on the other end.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IcelandicDates;
namespace ConsoleApplication4
{
 class Program
 {
    static void Main(string[] args)
    {
       Dagsetningar ds = new Dagsetningar();
       var list = ds.Nofn(new DateTime(2018, 1, 1), new DateTime(2018, 12, 31));
       string listi = "[";

       for (int i = 0; i < list.Count; i++)
       {
          if (i > 0)
             listi += "," + list[i].toJsonString();
          else
             listi += list[i].toJsonString();
       }
       listi += "]";
       System.Console.WriteLine(listi);
    }
 }
}

How to use the package

After creating a console windows application

You could list all the dates Icelanders are concerned with.
This includes dates like "Páskadagur" (Easter) and "Bóndadagur" (Husband day).
Where the Páskadagur is a Holiday but the Bóndadagur is not.

In the example below we are creating a string containing a array of Json objects.
Which can be sent directly and de-serialized on the other end.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IcelandicDates;
namespace ConsoleApplication4
{
 class Program
 {
    static void Main(string[] args)
    {
       Dagsetningar ds = new Dagsetningar();
       var list = ds.Nofn(new DateTime(2018, 1, 1), new DateTime(2018, 12, 31));
       string listi = "[";

       for (int i = 0; i < list.Count; i++)
       {
          if (i > 0)
             listi += "," + list[i].toJsonString();
          else
             listi += list[i].toJsonString();
       }
       listi += "]";
       System.Console.WriteLine(listi);
    }
 }
}

Release Notes

Fixing konudagur.

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 248 3/25/2018
1.0.0 238 2/5/2018