Skip to content

Instantly share code, notes, and snippets.

@jsakamoto
Created March 4, 2013 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsakamoto/5079333 to your computer and use it in GitHub Desktop.
Save jsakamoto/5079333 to your computer and use it in GitHub Desktop.
How to retrieve Japanese Holidays from Apple web site with DDay.ICal library.
using DDay.iCal;
using System;
using System.Linq;
// PM> Install-Package DDay.iCal
class Program
{
static void Main(string[] args)
{
var cals = iCalendar.LoadFromUri(new Uri("http://ical.mac.com/ical/Japanese32Holidays.ics"));
cals.SelectMany(cal => cal.Events)
.ToList()
.ForEach(a => Console.WriteLine(a.Start.ToString() + " - " + string.Join(", ", a.Resources)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment