Created
March 4, 2013 01:38
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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