Blame lib/Date/Manip/Lang/english.pod

Packit 95306a
# Copyright (c) 1995-2017 Sullivan Beck. All rights reserved.
Packit 95306a
# This program is free software; you can redistribute it and/or modify it
Packit 95306a
# under the same terms as Perl itself.
Packit 95306a
Packit 95306a
########################################################################
Packit 95306a
########################################################################
Packit 95306a
Packit 95306a
=pod
Packit 95306a
Packit 95306a
=encoding utf-8
Packit 95306a
Packit 95306a
=head1 NAME
Packit 95306a
Packit 95306a
Date::Manip::Lang::english - English language support.
Packit 95306a
Packit 95306a
=head1 SYNOPSIS
Packit 95306a
Packit 95306a
This module contains a list of words and expressions supporting
Packit 95306a
the language. It is not intended to be used directly (other
Packit 95306a
Date::Manip modules will load it as needed).
Packit 95306a
Packit 95306a
=head1 LANGUAGE EXPRESSIONS
Packit 95306a
Packit 95306a
The following is a list of all language words and expressions used
Packit 95306a
to write times and/or dates.
Packit 95306a
Packit 95306a
All strings are case insensitive.
Packit 95306a
Packit 95306a
=over 4
Packit 95306a
Packit 95306a
=item B<Month names and abbreviations>
Packit 95306a
Packit 95306a
When writing out the name of the month, several different variations may
Packit 95306a
exist including full names and abbreviations.
Packit 95306a
Packit 95306a
The following month names may be used:
Packit 95306a
Packit 95306a
   January
Packit 95306a
Packit 95306a
   February
Packit 95306a
Packit 95306a
   March
Packit 95306a
Packit 95306a
   April
Packit 95306a
Packit 95306a
   May
Packit 95306a
Packit 95306a
   June
Packit 95306a
Packit 95306a
   July
Packit 95306a
Packit 95306a
   August
Packit 95306a
Packit 95306a
   September
Packit 95306a
Packit 95306a
   October
Packit 95306a
Packit 95306a
   November
Packit 95306a
Packit 95306a
   December
Packit 95306a
Packit 95306a
Packit 95306a
The following abbreviations may be used:
Packit 95306a
Packit 95306a
   Jan
Packit 95306a
   Jan.
Packit 95306a
Packit 95306a
   Feb
Packit 95306a
   Feb.
Packit 95306a
Packit 95306a
   Mar
Packit 95306a
   Mar.
Packit 95306a
Packit 95306a
   Apr
Packit 95306a
   Apr.
Packit 95306a
Packit 95306a
   May
Packit 95306a
   May.
Packit 95306a
Packit 95306a
   Jun
Packit 95306a
   Jun.
Packit 95306a
Packit 95306a
   Jul
Packit 95306a
   Jul.
Packit 95306a
Packit 95306a
   Aug
Packit 95306a
   Aug.
Packit 95306a
Packit 95306a
   Sep
Packit 95306a
   Sept
Packit 95306a
   Sep.
Packit 95306a
   Sept.
Packit 95306a
Packit 95306a
   Oct
Packit 95306a
   Oct.
Packit 95306a
Packit 95306a
   Nov
Packit 95306a
   Nov.
Packit 95306a
Packit 95306a
   Dec
Packit 95306a
   Dec.
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Day names and abbreviations>
Packit 95306a
Packit 95306a
When writing out the name of the day, several different variations may
Packit 95306a
exist including full names and abbreviations.
Packit 95306a
Packit 95306a
The following day names may be used:
Packit 95306a
Packit 95306a
   Monday
Packit 95306a
Packit 95306a
   Tuesday
Packit 95306a
Packit 95306a
   Wednesday
Packit 95306a
Packit 95306a
   Thursday
Packit 95306a
Packit 95306a
   Friday
Packit 95306a
Packit 95306a
   Saturday
Packit 95306a
Packit 95306a
   Sunday
Packit 95306a
Packit 95306a
Packit 95306a
The following abbreviations may be used:
Packit 95306a
Packit 95306a
   Mon
Packit 95306a
   Mon.
Packit 95306a
Packit 95306a
   Tue
Packit 95306a
   Tues
Packit 95306a
   Tue.
Packit 95306a
   Tues.
Packit 95306a
Packit 95306a
   Wed
Packit 95306a
   Wed.
Packit 95306a
Packit 95306a
   Thu
Packit 95306a
   Thur
Packit 95306a
   Thu.
Packit 95306a
   Thur.
Packit 95306a
Packit 95306a
   Fri
Packit 95306a
   Fri.
Packit 95306a
Packit 95306a
   Sat
Packit 95306a
   Sat.
Packit 95306a
Packit 95306a
   Sun
Packit 95306a
   Sun.
Packit 95306a
Packit 95306a
Packit 95306a
The following short (1-2 characters) abbreviations may be used:
Packit 95306a
Packit 95306a
   M
Packit 95306a
Packit 95306a
   T
Packit 95306a
Packit 95306a
   W
Packit 95306a
Packit 95306a
   Th
Packit 95306a
Packit 95306a
   F
Packit 95306a
Packit 95306a
   Sa
Packit 95306a
Packit 95306a
   S
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Delta field names>
Packit 95306a
Packit 95306a
These are the names (and abbreviations) for the fields in a delta.  There are
Packit 95306a
7 fields: years, months, weeks, days, hours, minutes, seconds.
Packit 95306a
Packit 95306a
The names and abbreviations for these fields are:
Packit 95306a
Packit 95306a
   years
Packit 95306a
   y
Packit 95306a
   yr
Packit 95306a
   year
Packit 95306a
   yrs
Packit 95306a
Packit 95306a
   months
Packit 95306a
   m
Packit 95306a
   mon
Packit 95306a
   month
Packit 95306a
   mons
Packit 95306a
Packit 95306a
   weeks
Packit 95306a
   w
Packit 95306a
   wk
Packit 95306a
   wks
Packit 95306a
   week
Packit 95306a
Packit 95306a
   days
Packit 95306a
   d
Packit 95306a
   day
Packit 95306a
Packit 95306a
   hours
Packit 95306a
   h
Packit 95306a
   hr
Packit 95306a
   hrs
Packit 95306a
   hour
Packit 95306a
Packit 95306a
   minutes
Packit 95306a
   mn
Packit 95306a
   min
Packit 95306a
   minute
Packit 95306a
   mins
Packit 95306a
Packit 95306a
   seconds
Packit 95306a
   s
Packit 95306a
   sec
Packit 95306a
   second
Packit 95306a
   secs
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Morning/afternoon times>
Packit 95306a
Packit 95306a
This is a list of expressions use to designate morning or afternoon time
Packit 95306a
when a time is entered as a 12-hour time rather than a 24-hour time.
Packit 95306a
For example, in English, the time "17:00" could be specified as "5:00 PM".
Packit 95306a
Packit 95306a
Morning and afternoon time may be designated by the following sets of
Packit 95306a
words:
Packit 95306a
Packit 95306a
   AM
Packit 95306a
   A.M.
Packit 95306a
Packit 95306a
   PM
Packit 95306a
   P.M.
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Each or every>
Packit 95306a
Packit 95306a
There are a list of words that specify every occurrence of something.  These
Packit 95306a
are used in the following phrases:
Packit 95306a
Packit 95306a
   EACH Monday
Packit 95306a
   EVERY Monday
Packit 95306a
   EVERY month
Packit 95306a
Packit 95306a
The following words may be used:
Packit 95306a
Packit 95306a
   each
Packit 95306a
   every
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Next/Previous/Last occurrence>
Packit 95306a
Packit 95306a
There are a list of words that may be used to specify the next,
Packit 95306a
previous, or last occurrence of something.  These words could be used
Packit 95306a
in the following phrases:
Packit 95306a
Packit 95306a
   NEXT week
Packit 95306a
Packit 95306a
   LAST Tuesday
Packit 95306a
   PREVIOUS Tuesday
Packit 95306a
Packit 95306a
   LAST day of the month
Packit 95306a
Packit 95306a
The following words may be used:
Packit 95306a
Packit 95306a
Next occurrence:
Packit 95306a
Packit 95306a
   next
Packit 95306a
   following
Packit 95306a
Packit 95306a
Packit 95306a
Previous occurrence:
Packit 95306a
Packit 95306a
   previous
Packit 95306a
   last
Packit 95306a
Packit 95306a
Packit 95306a
Last occurrence:
Packit 95306a
Packit 95306a
   last
Packit 95306a
   final
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Delta words for going forward/backward in time>
Packit 95306a
Packit 95306a
When parsing deltas, there are words that may be used to specify
Packit 95306a
the the delta will refer to a time in the future or to a time in
Packit 95306a
the past (relative to some date).  In English, for example, you
Packit 95306a
might say:
Packit 95306a
Packit 95306a
   IN 5 days
Packit 95306a
   5 days AGO
Packit 95306a
Packit 95306a
The following words may be used to specify deltas that refer to
Packit 95306a
dates in the past or future respectively:
Packit 95306a
Packit 95306a
   ago
Packit 95306a
   past
Packit 95306a
   in the past
Packit 95306a
   earlier
Packit 95306a
   before now
Packit 95306a
Packit 95306a
   in
Packit 95306a
   later
Packit 95306a
   future
Packit 95306a
   in the future
Packit 95306a
   from now
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Business mode>
Packit 95306a
Packit 95306a
This contains two lists of words which can be used to specify a standard
Packit 95306a
(i.e. non-business) delta or a business delta.
Packit 95306a
Packit 95306a
Previously, it was used to tell whether the delta was approximate or exact,
Packit 95306a
but now this list is not used except to force the delta to be standard.
Packit 95306a
Packit 95306a
The following words may be used:
Packit 95306a
Packit 95306a
   exactly
Packit 95306a
   approximately
Packit 95306a
Packit 95306a
Packit 95306a
The following words may be used to specify a business delta:
Packit 95306a
Packit 95306a
   business
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Numbers>
Packit 95306a
Packit 95306a
Numbers may be spelled out in a variety of ways.  The following sets correspond
Packit 95306a
to the numbers from 1 to 53:
Packit 95306a
Packit 95306a
   1st
Packit 95306a
   first
Packit 95306a
   one
Packit 95306a
Packit 95306a
   2nd
Packit 95306a
   second
Packit 95306a
   two
Packit 95306a
Packit 95306a
   3rd
Packit 95306a
   third
Packit 95306a
   three
Packit 95306a
Packit 95306a
   4th
Packit 95306a
   fourth
Packit 95306a
   four
Packit 95306a
Packit 95306a
   5th
Packit 95306a
   fifth
Packit 95306a
   five
Packit 95306a
Packit 95306a
   6th
Packit 95306a
   sixth
Packit 95306a
   six
Packit 95306a
Packit 95306a
   7th
Packit 95306a
   seventh
Packit 95306a
   seven
Packit 95306a
Packit 95306a
   8th
Packit 95306a
   eighth
Packit 95306a
   eight
Packit 95306a
Packit 95306a
   9th
Packit 95306a
   ninth
Packit 95306a
   nine
Packit 95306a
Packit 95306a
   10th
Packit 95306a
   tenth
Packit 95306a
   ten
Packit 95306a
Packit 95306a
Packit 95306a
   11th
Packit 95306a
   eleventh
Packit 95306a
   eleven
Packit 95306a
Packit 95306a
   12th
Packit 95306a
   twelfth
Packit 95306a
   twelve
Packit 95306a
Packit 95306a
   13th
Packit 95306a
   thirteenth
Packit 95306a
   thirteen
Packit 95306a
Packit 95306a
   14th
Packit 95306a
   fourteenth
Packit 95306a
   fourteen
Packit 95306a
Packit 95306a
   15th
Packit 95306a
   fifteenth
Packit 95306a
   fifteen
Packit 95306a
Packit 95306a
   16th
Packit 95306a
   sixteenth
Packit 95306a
   sixteen
Packit 95306a
Packit 95306a
   17th
Packit 95306a
   seventeenth
Packit 95306a
   seventeen
Packit 95306a
Packit 95306a
   18th
Packit 95306a
   eighteenth
Packit 95306a
   eighteen
Packit 95306a
Packit 95306a
   19th
Packit 95306a
   nineteenth
Packit 95306a
   nineteen
Packit 95306a
Packit 95306a
   20th
Packit 95306a
   twentieth
Packit 95306a
   twenty
Packit 95306a
Packit 95306a
Packit 95306a
   21st
Packit 95306a
   twenty-first
Packit 95306a
   twenty-one
Packit 95306a
Packit 95306a
   22nd
Packit 95306a
   twenty-second
Packit 95306a
   twenty-two
Packit 95306a
Packit 95306a
   23rd
Packit 95306a
   twenty-third
Packit 95306a
   twenty-three
Packit 95306a
Packit 95306a
   24th
Packit 95306a
   twenty-fourth
Packit 95306a
   twenty-four
Packit 95306a
Packit 95306a
   25th
Packit 95306a
   twenty-fifth
Packit 95306a
   twenty-five
Packit 95306a
Packit 95306a
   26th
Packit 95306a
   twenty-sixth
Packit 95306a
   twenty-six
Packit 95306a
Packit 95306a
   27th
Packit 95306a
   twenty-seventh
Packit 95306a
   twenty-seven
Packit 95306a
Packit 95306a
   28th
Packit 95306a
   twenty-eighth
Packit 95306a
   twenty-eight
Packit 95306a
Packit 95306a
   29th
Packit 95306a
   twenty-ninth
Packit 95306a
   twenty-nine
Packit 95306a
Packit 95306a
   30th
Packit 95306a
   thirtieth
Packit 95306a
   thirty
Packit 95306a
Packit 95306a
Packit 95306a
   31st
Packit 95306a
   thirty-first
Packit 95306a
   thirty-one
Packit 95306a
Packit 95306a
   32nd
Packit 95306a
   thirty-two
Packit 95306a
   thirty-second
Packit 95306a
Packit 95306a
   33rd
Packit 95306a
   thirty-three
Packit 95306a
   thirty-third
Packit 95306a
Packit 95306a
   34th
Packit 95306a
   thirty-four
Packit 95306a
   thirty-fourth
Packit 95306a
Packit 95306a
   35th
Packit 95306a
   thirty-five
Packit 95306a
   thirty-fifth
Packit 95306a
Packit 95306a
   36th
Packit 95306a
   thirty-six
Packit 95306a
   thirty-sixth
Packit 95306a
Packit 95306a
   37th
Packit 95306a
   thirty-seven
Packit 95306a
   thirty-seventh
Packit 95306a
Packit 95306a
   38th
Packit 95306a
   thirty-eight
Packit 95306a
   thirty-eighth
Packit 95306a
Packit 95306a
   39th
Packit 95306a
   thirty-nine
Packit 95306a
   thirty-ninth
Packit 95306a
Packit 95306a
   40th
Packit 95306a
   forty
Packit 95306a
   fortieth
Packit 95306a
Packit 95306a
Packit 95306a
   41st
Packit 95306a
   forty-one
Packit 95306a
   forty-first
Packit 95306a
Packit 95306a
   42nd
Packit 95306a
   forty-two
Packit 95306a
   forty-second
Packit 95306a
Packit 95306a
   43rd
Packit 95306a
   forty-three
Packit 95306a
   forty-third
Packit 95306a
Packit 95306a
   44th
Packit 95306a
   forty-four
Packit 95306a
   forty-fourth
Packit 95306a
Packit 95306a
   45th
Packit 95306a
   forty-five
Packit 95306a
   forty-fifth
Packit 95306a
Packit 95306a
   46th
Packit 95306a
   forty-six
Packit 95306a
   forty-sixth
Packit 95306a
Packit 95306a
   47th
Packit 95306a
   forty-seven
Packit 95306a
   forty-seventh
Packit 95306a
Packit 95306a
   48th
Packit 95306a
   forty-eight
Packit 95306a
   forty-eighth
Packit 95306a
Packit 95306a
   49th
Packit 95306a
   forty-nine
Packit 95306a
   forty-ninth
Packit 95306a
Packit 95306a
   50th
Packit 95306a
   fifty
Packit 95306a
   fiftieth
Packit 95306a
Packit 95306a
Packit 95306a
   51st
Packit 95306a
   fifty-one
Packit 95306a
   fifty-first
Packit 95306a
Packit 95306a
   52nd
Packit 95306a
   fifty-two
Packit 95306a
   fifty-second
Packit 95306a
Packit 95306a
   53rd
Packit 95306a
   fifty-three
Packit 95306a
   fifty-third
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Ignored words>
Packit 95306a
Packit 95306a
In writing out dates in common forms, there are a number of words
Packit 95306a
that are typically not important.
Packit 95306a
Packit 95306a
There is frequently a word that appears in a phrase to designate
Packit 95306a
that a time is going to be specified next.  In English, you would
Packit 95306a
use the word AT in the example:
Packit 95306a
Packit 95306a
   December 3 at 12:00
Packit 95306a
Packit 95306a
The following words may be used:
Packit 95306a
Packit 95306a
   at
Packit 95306a
Packit 95306a
Packit 95306a
Another word is used to designate one member of a set.  In English,
Packit 95306a
you would use the words IN or OF:
Packit 95306a
Packit 95306a
   1st day OF December
Packit 95306a
   1st day IN December
Packit 95306a
Packit 95306a
The following words may be used:
Packit 95306a
Packit 95306a
   of
Packit 95306a
   in
Packit 95306a
Packit 95306a
Packit 95306a
Another word is use to specify that something is on a certain date.  In
Packit 95306a
English, you would use ON:
Packit 95306a
Packit 95306a
   ON July 5th
Packit 95306a
Packit 95306a
The following words may be used:
Packit 95306a
Packit 95306a
   on
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Words that set the date, time, or both>
Packit 95306a
Packit 95306a
There are some words that can be used to specify a date, a
Packit 95306a
time, or both relative to now.
Packit 95306a
Packit 95306a
Words that set the date are similar to the English words 'yesterday'
Packit 95306a
or 'tomorrow'.  These are specified as a delta which is added to the
Packit 95306a
current time to get a date.  The time is NOT set however, so the delta
Packit 95306a
is only partially used (it should only include year, month, week, and
Packit 95306a
day fields).
Packit 95306a
Packit 95306a
The following words may be used:
Packit 95306a
Packit 95306a
   ereyesterday         -0:0:0:2:0:0:0
Packit 95306a
   overmorrow           +0:0:0:2:0:0:0
Packit 95306a
   today                0:0:0:0:0:0:0
Packit 95306a
   tomorrow             +0:0:0:1:0:0:0
Packit 95306a
   yesterday            -0:0:0:1:0:0:0
Packit 95306a
Packit 95306a
Packit 95306a
Words that set only the time of day are similar to the English words
Packit 95306a
'noon' or 'midnight'.
Packit 95306a
Packit 95306a
The following words may be used:
Packit 95306a
Packit 95306a
   midnight             00:00:00
Packit 95306a
   noon                 12:00:00
Packit 95306a
Packit 95306a
Packit 95306a
Words that set the entire time and date (relative to the current
Packit 95306a
time and date) are also available.
Packit 95306a
Packit 95306a
In English, the word 'now' is one of these.
Packit 95306a
Packit 95306a
The following words may be used:
Packit 95306a
Packit 95306a
   now                  0:0:0:0:0:0:0
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Hour/Minute/Second separators>
Packit 95306a
Packit 95306a
When specifying the time of day, the most common separator is a colon (:)
Packit 95306a
which can be used for both separators.
Packit 95306a
Packit 95306a
Some languages use different pairs.  For example, French allows you to
Packit 95306a
specify the time as 13h30:20, so it would use the following pairs:
Packit 95306a
Packit 95306a
   : :
Packit 95306a
   h :
Packit 95306a
Packit 95306a
The first column is the hour-minute separator and the second column is
Packit 95306a
the minute-second separator.  Both are perl regular expressions.  When
Packit 95306a
creating a new translation, be aware that regular expressions with utf-8
Packit 95306a
characters may be tricky.  For example, don't include the expression '[x]'
Packit 95306a
where 'x' is a utf-8 character.
Packit 95306a
Packit 95306a
A pair of colons is ALWAY allowed for all languages.  If a language allows
Packit 95306a
additional pairs, they are listed here:
Packit 95306a
Packit 95306a
   Not defined in this language
Packit 95306a
Packit 95306a
Packit 95306a
=item B<Fractional second separator>
Packit 95306a
Packit 95306a
When specifying fractional seconds, the most common way is to use a
Packit 95306a
decimal point (.).  Some languages may specify a different separator
Packit 95306a
that might be used.  If this is done, it is a regular expression.
Packit 95306a
Packit 95306a
The decimal point is ALWAYS allowed for all languages.  If a language allows
Packit 95306a
another separator, it is listed here:
Packit 95306a
Packit 95306a
   Not defined in this language
Packit 95306a
Packit 95306a
Packit 95306a
=back
Packit 95306a
Packit 95306a
=head1 KNOWN BUGS
Packit 95306a
Packit 95306a
None known.
Packit 95306a
Packit 95306a
=head1 BUGS AND QUESTIONS
Packit 95306a
Packit 95306a
Please refer to the L<Date::Manip::Problems> documentation for
Packit 95306a
information on submitting bug reports or questions to the author.
Packit 95306a
Packit 95306a
=head1 SEE ALSO
Packit 95306a
Packit 95306a
L<Date::Manip>       - main module documentation
Packit 95306a
Packit 95306a
=head1 LICENSE
Packit 95306a
Packit 95306a
This script is free software; you can redistribute it and/or
Packit 95306a
modify it under the same terms as Perl itself.
Packit 95306a
Packit 95306a
=head1 AUTHOR
Packit 95306a
Packit 95306a
Sullivan Beck (sbeck@cpan.org)
Packit 95306a
Packit 95306a
=cut