-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
17 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,24 @@ | ||
# IcalNetHumanReadableExtension | ||
Human readable extension for https://github.com/rianjs/ical.net | ||
|
||
Supported languages: | ||
|
||
| Language | Culture | | ||
| ---------- | ------- | | ||
| English | en | | ||
| German | de | | ||
|
||
### Usage example | ||
```csharp | ||
var recurrencePattern = new RecurrencePattern("FREQ=WEEKLY;INTERVAL=1;BYDAY=MO,TU"); | ||
recurrencePattern.ToText(); //every week on Monday, Tuesday | ||
recurrencePattern = new RecurrencePattern("FREQ=YEARLY;BYDAY=WE;BYSETPOS=-1;BYMONTH=4"); | ||
recurrencePattern.ToText(); //every year on last Wednesday of April | ||
var cultureInfo = new CultureInfo("de"); | ||
recurrencePattern.ToText(cultureInfo); //jedes Jahr am letzten Mittwoch im April | ||
``` | ||
|
||
Thanks to [casaucao / OrdinalNumbers](https://github.com/casaucao/OrdinalNumbers). |