{"id":2208,"date":"2010-08-25T03:10:00","date_gmt":"2010-08-25T03:10:00","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/Hayek\/Jochen\/wp\/blog-en\/2010\/08\/25\/an-event-scheduler-my-latest-perl-helper\/"},"modified":"2010-08-25T03:10:00","modified_gmt":"2010-08-25T03:10:00","slug":"an-event-scheduler-my-latest-perl-helper","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2010\/08\/25\/an-event-scheduler-my-latest-perl-helper\/","title":{"rendered":"an event scheduler &#8211; my latest perl helper"},"content":{"rendered":"<p>\t\t\t\tThe need for a new helper script in Perl arose recently. I called it <span><span>JHschedule_courses.pl<\/span><\/span>.<\/p>\n<p>I wanted to create weekly events,<\/p>\n<ul>\n<li>given a start date,<\/li>\n<li>given the number of weeks,<\/li>\n<li>given the offset of the registration deadline,<\/li>\n<li>and given the offset of the end date of that event.<\/li>\n<\/ul>\n<p>The output of <span><span>JHschedule_courses.pl<\/span><\/span> would be<\/p>\n<ul>\n<li>the start date within any such week,<\/li>\n<li>the respective registration deadline,<\/li>\n<li>and the respective end date.<\/li>\n<\/ul>\n<p>This output would serve as a <i>here document<\/i> to a loop within a shell script, which in turn also uses an XML template (as another <i>here document<\/i> within that loop) and which would create an XML structure for any such event as described above, but obviously with some constant text included. The entire XML structure would (after some tweaking) get uploaded to a calendar system.<\/p>\n<p>I was pretty sure, I could achieve this functionality using Steffen Beyer&#8217;s <i><a href=\"http:\/\/guest.engelschall.com\/~sb\/download\/Date-Calc\/\">Date::Calc<\/a><\/i> (esp.<span> <span>Add_Delta_YMD<\/span><\/span>), which I have been using in variouses contextes for many years now. And now it&#8217;s done. Thanks a lot to Steffen Beyer! Do you have an Amazon wishlist?\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The need for a new helper script in Perl arose recently. I called it JHschedule_courses.pl. I wanted to create weekly events, given a start date, given the number of weeks, given the offset of the registration deadline, and given the offset of the end date of that event. The output of JHschedule_courses.pl would be the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-2208","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-zC","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=2208"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/2208\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=2208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=2208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=2208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}