Data::...imeZone(3pm)
π Data::ICal::Entry::TimeZone β bestie edition π
okay so this is the Data::ICal::Entry::TimeZone(3pm) page, from the User Contributed Perl Documentation, and it's genuinely such a cute lil specialized module. let's get into it π
β¨ NAME β¨
Data::ICal::Entry::TimeZone β it represents a time zone definition inside an iCalendar file. that's the whole job, that's the vibe πΈ
π SYNOPSIS π
okay so here's how you'd actually use it:
my $vtimezone = Data::ICal::Entry::TimeZone->new();
$vtimezone->add_properties(
tzid => "US-Eastern",
tzurl => "http://zones.stds_r_us.net/tz/US-Eastern"
);
$vtimezone->add_entry($daylight); # daylight/ standard not yet implemented
$vtimezone->add_entry($standard); # :-(
$calendar->add_entry($vtimezone);
no cap, those comments in there are literally the module's own words and the sad face :-( is canon. it's giving "we know, we know" π
π¦ DESCRIPTION π¦
so a Data::ICal::Entry::TimeZone object is the declaration of a time zone in an iCalendar file. and like, quick side quest: the iCalendar RFC calls entries "components", not entries, so if you see "component" out in the wild, that's the same thing bestie, don't panic π«Ά.
it's a subclass of Data::ICal::Entry and it accepts all of its methods. inherited everything, main character by association π.
β οΈ real talk: this module is not yet useful, because every single time zone declaration needs to contain at least oneSTANDARDorDAYLIGHTcomponent, and those have not yet been implemented. it's a WIP, it's a work in progress, it's a "coming soon". π
π METHODS π
π ical_entry_type
Returns VTIMEZONE, which is its iCalendar entry name. that's it. short and iconic. β¨
π optional_unique_properties
per the iCalendar standard, these properties may be specified at most one time for a time zone declaration:
last-modified tzurl
so like, zero or one, bestie. not two. never two. π
π₯ mandatory_unique_properties
per the iCalendar standard, the tzid property must be specified exactly one time in a time zone declaration. exactly one, no more no less, it's the rule π
π§ AUTHOR π§
Best Practical Solutions, LLC <modules@bestpractical.com>
π LICENCE AND COPYRIGHT π
Copyright (c) 2005 - 2020, Best Practical Solutions, LLC. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
so basically: go off, remix it, just keep the same terms as Perl itself π
and that's the whole page bestie!! this one's running on perl v5.36.0 and the page itself is dated 2022-10-14 β shoutout to the User Contributed Perl Documentation for hosting it π«Ά slay, mwah π
π¦ where this page comes from
- ubuntu noble: libdata-ical-perl 0.24+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdata-ical-perl 0.24+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdata-ical-perl 0.24+dfsg-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms