{"id":19789588,"url":"https://github.com/webfreak001/ics_parse","last_synced_at":"2026-03-19T11:44:55.775Z","repository":{"id":146626875,"uuid":"488328856","full_name":"WebFreak001/ics_parse","owner":"WebFreak001","description":"RFC 5545 iCal / iCalendar event parser  (.ics files)","archived":false,"fork":false,"pushed_at":"2022-05-03T18:57:09.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T04:13:29.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"D","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WebFreak001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-03T18:55:52.000Z","updated_at":"2022-05-04T01:17:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"54a8ca4c-3bb8-4356-aa51-b5d97c13c1b3","html_url":"https://github.com/WebFreak001/ics_parse","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fics_parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fics_parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fics_parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WebFreak001%2Fics_parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WebFreak001","download_url":"https://codeload.github.com/WebFreak001/ics_parse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241126669,"owners_count":19914057,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T06:34:01.115Z","updated_at":"2026-03-03T03:43:06.484Z","avatar_url":"https://github.com/WebFreak001.png","language":"D","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ics_parse\n\nParser for .ics files (ical format)\n\nOnly supports parsing VEVENT right now.\n(no VTODO, VJOURNAL, VFREEBUSY, VTIMEZONE, iana components, custom X-components)\n\n- Does not support non-UTC timezones (timezones are not exposed, but could be and should be by implementing a custom SysTime timezone that's used)\n- Does not support VALARM parsing (should be easy to add)\n\nStandards: https://datatracker.ietf.org/doc/html/rfc5545\n\nHistory:\n * May 2022 - added support for date/datetime value type (DTSTART;VALUE=DATE:20220503) parsing\n * June 2019 - initial version\n\n## Example\n\n```d\nimport ics_parse;\n\nauto cal = parseCalendar(`\nBEGIN:VCALENDAR\nPRODID:TestKalender\nVERSION:2.0\nCALSCALE:GREGORIAN\nBEGIN:VEVENT\nDTSTAMP:20181212T212342Z\nUID:20181231T123857Z-uidGen@webfreak.org\nDTSTART:20181207T070000Z\nDTEND:20181207T083000Z\nSUMMARY:Prüfung: test\n \nLOCATION:Raum1\\, Raum2\nEND:VEVENT\nBEGIN:VEVENT\nDTSTAMP:20220501T145021Z\nUID:20220503T145021Z-uidGen@webfreak.org\nDTSTART;VALUE=DATE:20220503\nDTEND;VALUE=DATE:20220503\nSUMMARY:Full day event\n \nEND:VEVENT\nEND:VCALENDAR\n`.splitLines.join(\"\\r\\n\") /* must be CRLF separated lines */, (ref partial, error) {\n\t// you get parsing errors which you can choose to ignore, log or abort the program\n\t// (or do anything else in an event of parsing issue)\n\n\t// you can assume partial or full values to be missing, basically completely breaking\n\t// the event if the property in question is important to you.\n\tassert(false, error.to!string ~ \"\\n\\nPartial result: \" ~ partial.to!string);\n});\n\nassert(cal.productId == \"TestKalender\");\nassert(cal.specVersion == \"2.0\");\nassert(cal.scale == \"GREGORIAN\");\nassert(cal.entries.length == 2);\n\nauto event0 = cal.entries[0].tryMatch!((VEvent v) =\u003e v);\nassert(event0.dtStamp == SysTime(DateTime(2018, 12, 12, 21, 23, 42), UTC()));\nassert(event0.uid == \"20181231T123857Z-uidGen@webfreak.org\");\nassert(event0.dtStart.tryMatch!((SysTime v) =\u003e v) == SysTime(DateTime(2018, 12, 7, 7, 0, 0), UTC()));\nassert(event0.dtEnd.tryMatch!((SysTime v) =\u003e v) == SysTime(DateTime(2018, 12, 7, 8, 30, 0), UTC()));\nassert(event0.summary == \"Prüfung: test\");\nassert(event0.location == \"Raum1, Raum2\");\n\ncal.entries[1].tryMatch!((VEvent event) {\n\tassert(event.dtStamp == SysTime(DateTime(2022, 5, 1, 14, 50, 21), UTC()));\n\tassert(event.uid == \"20220503T145021Z-uidGen@webfreak.org\");\n\tassert(event.dtStart.tryMatch!((Date v) =\u003e v) == Date(2022, 5, 3));\n\tassert(event.dtEnd.tryMatch!((Date v) =\u003e v) == Date(2022, 5, 3));\n\tassert(event.summary == \"Full day event\");\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfreak001%2Fics_parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebfreak001%2Fics_parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfreak001%2Fics_parse/lists"}