From d635a9e3103c8b0b1337fc682dfe8ba0fca89ffd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C5=8Dan?= Date: Wed, 25 Feb 2026 22:17:44 -0700 Subject: [PATCH] fix: correct typos across documentation and comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix spelling errors in multiple files: - Zone.pm: "opionally" → "optionally", "determins" → "determines", "boundry" → "boundary" - Format.pm: "routins" → "routines", "formating" → "formatting" (3 occurrences) - Language.pm: "formating" → "formatting" - Greek.pm: "gratiously" → "graciously" - Hungarian.pm: "neeed" → "needed" Originally submitted as gbarr/perl-TimeDate#3 by @dsteinbrunner Co-Authored-By: David Steinbrunner --- lib/Date/Format.pm | 6 +++--- lib/Date/Language.pm | 3 +-- lib/Date/Language/Greek.pm | 2 +- lib/Date/Language/Hungarian.pm | 2 +- lib/Time/Zone.pm | 6 +++--- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/lib/Date/Format.pm b/lib/Date/Format.pm index 3a1ea90..eb86696 100644 --- a/lib/Date/Format.pm +++ b/lib/Date/Format.pm @@ -169,7 +169,7 @@ sub wkyr { } ## -## these 6 formatting routins need to be *copied* into the language +## these 6 formatting routines need to be *copied* into the language ## specific packages ## @@ -269,7 +269,7 @@ __END__ =head1 NAME -Date::Format - Date formating subroutines +Date::Format - Date formatting subroutines =head1 SYNOPSIS @@ -322,7 +322,7 @@ conversion specification C<"%a %b %e %T %Y\n"> =head1 MULTI-LANGUAGE SUPPORT -Date::Format is capable of formating into several languages by creating +Date::Format is capable of formatting into several languages by creating a language specific object and calling methods, see L my $lang = Date::Language->new('German'); diff --git a/lib/Date/Language.pm b/lib/Date/Language.pm index 1756865..4c379a6 100644 --- a/lib/Date/Language.pm +++ b/lib/Date/Language.pm @@ -87,7 +87,7 @@ __END__ =head1 NAME -Date::Language - Language specific date formating and parsing +Date::Language - Language specific date formatting and parsing =head1 SYNOPSIS @@ -142,4 +142,3 @@ See L See L =back - diff --git a/lib/Date/Language/Greek.pm b/lib/Date/Language/Greek.pm index 00f917c..b37383f 100644 --- a/lib/Date/Language/Greek.pm +++ b/lib/Date/Language/Greek.pm @@ -4,7 +4,7 @@ ## Traditional date format is: DoW DD{eta} MoY Year (%A %o %B %Y) ## ## Matthew Musgrove -## Translations gratiously provided by Menelaos Stamatelos +## Translations graciously provided by Menelaos Stamatelos ## This module returns unicode (utf8) encoded characters. You will need to ## take the necessary steps for this to display correctly. ## diff --git a/lib/Date/Language/Hungarian.pm b/lib/Date/Language/Hungarian.pm index d9c838d..91afa6b 100644 --- a/lib/Date/Language/Hungarian.pm +++ b/lib/Date/Language/Hungarian.pm @@ -5,7 +5,7 @@ # This is a just-because-I-stumbled-across-it # -and-my-wife-is-Hungarian release: if Graham or # someone adds to docs to Date::Format, I'd be -# glad to correct bugs and extend as neeed. +# glad to correct bugs and extend as needed. # package Date::Language::Hungarian; diff --git a/lib/Time/Zone.pm b/lib/Time/Zone.pm index 8a40f91..fd52fe4 100644 --- a/lib/Time/Zone.pm +++ b/lib/Time/Zone.pm @@ -20,10 +20,10 @@ Time::Zone -- miscellaneous timezone manipulations routines This is a collection of miscellaneous timezone manipulation routines. C parses the TZ environment variable and returns a timezone -string suitable for inclusion in L-like output. It opionally takes +string suitable for inclusion in L-like output. It optionally takes a timezone string, a time, and a is-dst flag. -C determins the offset from GMT time in seconds. It +C determines the offset from GMT time in seconds. It only does the calculation once. C determines the offset from GMT in seconds of a specified @@ -132,7 +132,7 @@ sub calc_off } elsif ($l[7] == $g[7] - 1) { $off -= 86400; } elsif ($l[7] < $g[7]) { - # crossed over a year boundry! + # crossed over a year boundary! # localtime is beginning of year, gmt is end # therefore local is ahead $off += 86400;