Fix last ChangeLog entry.
[gnulib.git] / doc / parse-datetime.texi
blob5622d6a732af0c41bf1b2ca00c8524ac9370cb5e
1 @c GNU date syntax documentation
3 @c Copyright (C) 1994--2006, 2009--2021 Free Software Foundation, Inc.
5 @c Permission is granted to copy, distribute and/or modify this document
6 @c under the terms of the GNU Free Documentation License, Version 1.3 or
7 @c any later version published by the Free Software Foundation; with no
8 @c Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.  A
9 @c copy of the license is at <https://www.gnu.org/licenses/fdl-1.3.en.html>.
11 @node Date input formats
12 @chapter Date input formats
14 @cindex date input formats
15 @findex parse_datetime
17 First, a quote:
19 @quotation
20 Our units of temporal measurement, from seconds on up to months, are so
21 complicated, asymmetrical and disjunctive so as to make coherent mental
22 reckoning in time all but impossible.  Indeed, had some tyrannical god
23 contrived to enslave our minds to time, to make it all but impossible
24 for us to escape subjection to sodden routines and unpleasant surprises,
25 he could hardly have done better than handing down our present system.
26 It is like a set of trapezoidal building blocks, with no vertical or
27 horizontal surfaces, like a language in which the simplest thought
28 demands ornate constructions, useless particles and lengthy
29 circumlocutions.  Unlike the more successful patterns of language and
30 science, which enable us to face experience boldly or at least
31 level-headedly, our system of temporal calculation silently and
32 persistently encourages our terror of time.
34 @dots{}  It is as though architects had to measure length in feet, width
35 in meters and height in ells; as though basic instruction manuals
36 demanded a knowledge of five different languages.  It is no wonder then
37 that we often look into our own immediate past or future, last Tuesday
38 or a week from Sunday, with feelings of helpless confusion.  @dots{}
40 ---Robert Grudin, @cite{Time and the Art of Living}.
41 @end quotation
43 This section describes the textual date representations that GNU
44 programs accept.  These are the strings you, as a user, can supply as
45 arguments to the various programs.  The C interface (via the
46 @code{parse_datetime} function) is not described here.
48 @menu
49 * General date syntax::          Common rules
50 * Calendar date items::          21 Jul 2020
51 * Time of day items::            9:20pm
52 * Time zone items::              UTC, -0700, +0900, @dots{}
53 * Combined date and time of day items:: 2020-07-21T20:02:00,000000-0400
54 * Day of week items::            Monday and others
55 * Relative items in date strings:: next tuesday, 2 years ago
56 * Pure numbers in date strings:: 20200721, 1440
57 * Seconds since the Epoch::      @@1595289600
58 * Specifying time zone rules::   TZ="America/New_York", TZ="UTC0"
59 * Authors of parse_datetime::    Bellovin, Eggert, Salz, Berets, et al.
60 @end menu
63 @node General date syntax
64 @section General date syntax
66 @cindex general date syntax
68 @cindex items in date strings
69 A @dfn{date} is a string, possibly empty, containing many items
70 separated by whitespace.  The whitespace may be omitted when no
71 ambiguity arises.  The empty string means the beginning of today (i.e.,
72 midnight).  Order of the items is immaterial.  A date string may contain
73 many flavors of items:
75 @itemize @bullet
76 @item calendar date items
77 @item time of day items
78 @item time zone items
79 @item combined date and time of day items
80 @item day of the week items
81 @item relative items
82 @item pure numbers.
83 @end itemize
85 @noindent We describe each of these item types in turn, below.
87 @cindex numbers, written-out
88 @cindex ordinal numbers
89 @findex first @r{in date strings}
90 @findex next @r{in date strings}
91 @findex last @r{in date strings}
92 A few ordinal numbers may be written out in words in some contexts.  This is
93 most useful for specifying day of the week items or relative items (see
94 below).  Among the most commonly used ordinal numbers, the word
95 @samp{last} stands for @math{-1}, @samp{this} stands for 0, and
96 @samp{first} and @samp{next} both stand for 1.  Because the word
97 @samp{second} stands for the unit of time there is no way to write the
98 ordinal number 2, but for convenience @samp{third} stands for 3,
99 @samp{fourth} for 4, @samp{fifth} for 5,
100 @samp{sixth} for 6, @samp{seventh} for 7, @samp{eighth} for 8,
101 @samp{ninth} for 9, @samp{tenth} for 10, @samp{eleventh} for 11 and
102 @samp{twelfth} for 12.
104 @cindex months, written-out
105 When a month is written this way, it is still considered to be written
106 numerically, instead of being ``spelled in full''; this changes the
107 allowed strings.
109 @cindex language, in dates
110 In the current implementation, only English is supported for words and
111 abbreviations like @samp{AM}, @samp{DST}, @samp{EST}, @samp{first},
112 @samp{January}, @samp{Sunday}, @samp{tomorrow}, and @samp{year}.
114 @cindex language, in dates
115 @cindex time zone item
116 The output of the @command{date} command
117 is not always acceptable as a date string,
118 not only because of the language problem, but also because there is no
119 standard meaning for time zone items like @samp{IST}@.  When using
120 @command{date} to generate a date string intended to be parsed later,
121 specify a date format that is independent of language and that does not
122 use time zone items other than @samp{UTC} and @samp{Z}@.  Here are some
123 ways to do this:
125 @example
126 $ LC_ALL=C TZ=UTC0 date
127 Tue Jul 21 23:00:37 UTC 2020
128 $ TZ=UTC0 date +'%Y-%m-%d %H:%M:%SZ'
129 2020-07-21 23:00:37Z
130 $ date --rfc-3339=ns  # --rfc-3339 is a GNU extension.
131 2020-07-21 19:00:37.692722128-04:00
132 $ date --rfc-2822  # a GNU extension
133 Tue, 21 Jul 2020 19:00:37 -0400
134 $ date +'%Y-%m-%d %H:%M:%S %z'  # %z is a GNU extension.
135 2020-07-21 19:00:37 -0400
136 $ date +'@@%s.%N'  # %s and %N are GNU extensions.
137 @@1595372437.692722128
138 @end example
140 @cindex case, ignored in dates
141 @cindex comments, in dates
142 Alphabetic case is completely ignored in dates.  Comments may be introduced
143 between round parentheses, as long as included parentheses are properly
144 nested.  Hyphens not followed by a digit are currently ignored.  Leading
145 zeros on numbers are ignored.
147 @cindex leap seconds
148 Invalid dates like @samp{2019-02-29} or times like @samp{24:00} are
149 rejected.  In the typical case of a host that does not support leap
150 seconds, a time like @samp{23:59:60} is rejected even if it
151 corresponds to a valid leap second.
154 @node Calendar date items
155 @section Calendar date items
157 @cindex calendar date item
159 A @dfn{calendar date item} specifies a day of the year.  It is
160 specified differently, depending on whether the month is specified
161 numerically or literally.  All these strings specify the same calendar date:
163 @example
164 2020-07-20     # ISO 8601.
165 20-7-20        # Assume 19xx for 69 through 99,
166                # 20xx for 00 through 68 (not recommended).
167 7/20/2020      # Common U.S. writing.
168 20 July 2020
169 20 Jul 2020    # Three-letter abbreviations always allowed.
170 Jul 20, 2020
171 20-jul-2020
172 20jul2020
173 @end example
175 The year can also be omitted.  In this case, the last specified year is
176 used, or the current year if none.  For example:
178 @example
179 7/20
180 jul 20
181 @end example
183 Here are the rules.
185 @cindex ISO 8601 date format
186 @cindex date format, ISO 8601
187 For numeric months, the ISO 8601 format
188 @samp{@var{year}-@var{month}-@var{day}} is allowed, where @var{year} is
189 any positive number, @var{month} is a number between 01 and 12, and
190 @var{day} is a number between 01 and 31.  A leading zero must be present
191 if a number is less than ten.  If @var{year} is 68 or smaller, then 2000
192 is added to it; otherwise, if @var{year} is less than 100,
193 then 1900 is added to it.  The construct
194 @samp{@var{month}/@var{day}/@var{year}}, popular in the United States,
195 is accepted.  Also @samp{@var{month}/@var{day}}, omitting the year.
197 @cindex month names in date strings
198 @cindex abbreviations for months
199 Literal months may be spelled out in full: @samp{January},
200 @samp{February}, @samp{March}, @samp{April}, @samp{May}, @samp{June},
201 @samp{July}, @samp{August}, @samp{September}, @samp{October},
202 @samp{November} or @samp{December}.  Literal months may be abbreviated
203 to their first three letters, possibly followed by an abbreviating dot.
204 It is also permitted to write @samp{Sept} instead of @samp{September}.
206 When months are written literally, the calendar date may be given as any
207 of the following:
209 @example
210 @var{day} @var{month} @var{year}
211 @var{day} @var{month}
212 @var{month} @var{day} @var{year}
213 @var{day}-@var{month}-@var{year}
214 @end example
216 Or, omitting the year:
218 @example
219 @var{month} @var{day}
220 @end example
223 @node Time of day items
224 @section Time of day items
226 @cindex time of day item
228 A @dfn{time of day item} in date strings specifies the time on a given
229 day.  Here are some examples, all of which represent the same time:
231 @example
232 20:02:00.000000
233 20:02
234 8:02pm
235 20:02-0500      # In EST (U.S. Eastern Standard Time).
236 @end example
238 @cindex leap seconds
239 More generally, the time of day may be given as
240 @samp{@var{hour}:@var{minute}:@var{second}}, where @var{hour} is
241 a number between 0 and 23, @var{minute} is a number between 0 and
242 59, and @var{second} is a number between 0 and 59 possibly followed by
243 @samp{.} or @samp{,} and a fraction containing one or more digits.
244 Alternatively,
245 @samp{:@var{second}} can be omitted, in which case it is taken to
246 be zero.  On the rare hosts that support leap seconds, @var{second}
247 may be 60.
249 @findex am @r{in date strings}
250 @findex pm @r{in date strings}
251 @findex midnight @r{in date strings}
252 @findex noon @r{in date strings}
253 If the time is followed by @samp{am} or @samp{pm} (or @samp{a.m.}
254 or @samp{p.m.}), @var{hour} is restricted to run from 1 to 12, and
255 @samp{:@var{minute}} may be omitted (taken to be zero).  @samp{am}
256 indicates the first half of the day, @samp{pm} indicates the second
257 half of the day.  In this notation, 12 is the predecessor of 1:
258 midnight is @samp{12am} while noon is @samp{12pm}.
259 (This is the zero-oriented interpretation of @samp{12am} and @samp{12pm},
260 as opposed to the old tradition derived from Latin
261 which uses @samp{12m} for noon and @samp{12pm} for midnight.)
263 @cindex time zone correction
264 @cindex minutes, time zone correction by
265 The time may alternatively be followed by a time zone correction,
266 expressed as @samp{@var{s}@var{hh}@var{mm}}, where @var{s} is @samp{+}
267 or @samp{-}, @var{hh} is a number of zone hours and @var{mm} is a number
268 of zone minutes.
269 The zone minutes term, @var{mm}, may be omitted, in which case
270 the one- or two-digit correction is interpreted as a number of hours.
271 You can also separate @var{hh} from @var{mm} with a colon.
272 When a time zone correction is given this way, it
273 forces interpretation of the time relative to
274 Coordinated Universal Time (UTC), overriding any previous
275 specification for the time zone or the local time zone.  For example,
276 @samp{+0530} and @samp{+05:30} both stand for the time zone 5.5 hours
277 ahead of UTC (e.g., India).
278 This is the best way to
279 specify a time zone correction by fractional parts of an hour.
280 The maximum zone correction is 24 hours.
282 Either @samp{am}/@samp{pm} or a time zone correction may be specified,
283 but not both.
286 @node Time zone items
287 @section Time zone items
289 @cindex time zone item
291 A @dfn{time zone item} specifies an international time zone, indicated
292 by a small set of letters, e.g., @samp{UTC} or @samp{Z}
293 for Coordinated Universal
294 Time.  Any included periods are ignored.  By following a
295 non-daylight-saving time zone by the string @samp{DST} in a separate
296 word (that is, separated by some white space), the corresponding
297 daylight saving time zone may be specified.
298 Alternatively, a non-daylight-saving time zone can be followed by a
299 time zone correction, to add the two values.  This is normally done
300 only for @samp{UTC}; for example, @samp{UTC+05:30} is equivalent to
301 @samp{+05:30}.
303 Time zone items other than @samp{UTC} and @samp{Z}
304 are obsolescent and are not recommended, because they
305 are ambiguous; for example, @samp{EST} has a different meaning in
306 Australia than in the United States, and @samp{A} has different
307 meaning as a military time zone than as an obsolescent
308 RFC 822 time zone.  Instead, it's better to use
309 unambiguous numeric time zone corrections like @samp{-0500}, as
310 described in the previous section.
312 If neither a time zone item nor a time zone correction is supplied,
313 timestamps are interpreted using the rules of the default time zone
314 (@pxref{Specifying time zone rules}).
317 @node Combined date and time of day items
318 @section Combined date and time of day items
320 @cindex combined date and time of day item
321 @cindex ISO 8601 date and time of day format
322 @cindex date and time of day format, ISO 8601
324 The ISO 8601 date and time of day extended format consists of an ISO
325 8601 date, a @samp{T} character separator, and an ISO 8601 time of
326 day.  This format is also recognized if the @samp{T} is replaced by a
327 space.
329 In this format, the time of day should use 24-hour notation.
330 Fractional seconds are allowed, with either comma or period preceding
331 the fraction.  ISO 8601 fractional minutes and hours are not
332 supported.  Typically, hosts support nanosecond timestamp resolution;
333 excess precision is silently discarded.
335 Here are some examples:
337 @example
338 2012-09-24T20:02:00.052-05:00
339 2012-12-31T23:59:59,999999999+11:00
340 1970-01-01 00:00Z
341 @end example
343 @node Day of week items
344 @section Day of week items
346 @cindex day of week item
348 The explicit mention of a day of the week will forward the date
349 (only if necessary) to reach that day of the week in the future.
351 Days of the week may be spelled out in full: @samp{Sunday},
352 @samp{Monday}, @samp{Tuesday}, @samp{Wednesday}, @samp{Thursday},
353 @samp{Friday} or @samp{Saturday}.  Days may be abbreviated to their
354 first three letters, optionally followed by a period.  The special
355 abbreviations @samp{Tues} for @samp{Tuesday}, @samp{Wednes} for
356 @samp{Wednesday} and @samp{Thur} or @samp{Thurs} for @samp{Thursday} are
357 also allowed.
359 @findex next @var{day}
360 @findex last @var{day}
361 A number may precede a day of the week item to move forward
362 supplementary weeks.  It is best used in expression like @samp{third
363 monday}.  In this context, @samp{last @var{day}} or @samp{next
364 @var{day}} is also acceptable; they move one week before or after
365 the day that @var{day} by itself would represent.
367 A comma following a day of the week item is ignored.
370 @node Relative items in date strings
371 @section Relative items in date strings
373 @cindex relative items in date strings
374 @cindex displacement of dates
376 @dfn{Relative items} adjust a date (or the current date if none) forward
377 or backward.  The effects of relative items accumulate.  Here are some
378 examples:
380 @example
381 1 year
382 1 year ago
383 3 years
384 2 days
385 @end example
387 @findex year @r{in date strings}
388 @findex month @r{in date strings}
389 @findex fortnight @r{in date strings}
390 @findex week @r{in date strings}
391 @findex day @r{in date strings}
392 @findex hour @r{in date strings}
393 @findex minute @r{in date strings}
394 The unit of time displacement may be selected by the string @samp{year}
395 or @samp{month} for moving by whole years or months.  These are fuzzy
396 units, as years and months are not all of equal duration.  More precise
397 units are @samp{fortnight} which is worth 14 days, @samp{week} worth 7
398 days, @samp{day} worth 24 hours, @samp{hour} worth 60 minutes,
399 @samp{minute} or @samp{min} worth 60 seconds, and @samp{second} or
400 @samp{sec} worth one second.  An @samp{s} suffix on these units is
401 accepted and ignored.
403 @findex ago @r{in date strings}
404 The unit of time may be preceded by a multiplier, given as an optionally
405 signed number.  Unsigned numbers are taken as positively signed.  No
406 number at all implies 1 for a multiplier.  Following a relative item by
407 the string @samp{ago} is equivalent to preceding the unit by a
408 multiplier with value @math{-1}.
410 @findex day @r{in date strings}
411 @findex tomorrow @r{in date strings}
412 @findex yesterday @r{in date strings}
413 The string @samp{tomorrow} is worth one day in the future (equivalent
414 to @samp{day}), the string @samp{yesterday} is worth
415 one day in the past (equivalent to @samp{day ago}).
417 @findex now @r{in date strings}
418 @findex today @r{in date strings}
419 @findex this @r{in date strings}
420 The strings @samp{now} or @samp{today} are relative items corresponding
421 to zero-valued time displacement, these strings come from the fact
422 a zero-valued time displacement represents the current time when not
423 otherwise changed by previous items.  They may be used to stress other
424 items, like in @samp{12:00 today}.  The string @samp{this} also has
425 the meaning of a zero-valued time displacement, but is preferred in
426 date strings like @samp{this thursday}.
428 When a relative item causes the resulting date to cross a boundary
429 where the clocks were adjusted, typically for daylight saving time,
430 the resulting date and time are adjusted accordingly.
432 The fuzz in units can cause problems with relative items.  For
433 example, @samp{2020-07-31 -1 month} might evaluate to 2020-07-01,
434 because 2020-06-31 is an invalid date.  To determine the previous
435 month more reliably, you can ask for the month before the 15th of the
436 current month.  For example:
438 @example
439 $ date -R
440 Thu, 31 Jul 2020 13:02:39 -0400
441 $ date --date='-1 month' +'Last month was %B?'
442 Last month was July?
443 $ date --date="$(date +%Y-%m-15) -1 month" +'Last month was %B!'
444 Last month was June!
445 @end example
447 Also, take care when manipulating dates around clock changes such as
448 daylight saving leaps.  In a few cases these have added or subtracted
449 as much as 24 hours from the clock, so it is often wise to adopt
450 universal time by setting the @env{TZ} environment variable to
451 @samp{UTC0} before embarking on calendrical calculations.
453 @node Pure numbers in date strings
454 @section Pure numbers in date strings
456 @cindex pure numbers in date strings
458 The precise interpretation of a pure decimal number depends
459 on the context in the date string.
461 If the decimal number is of the form @var{yyyy}@var{mm}@var{dd} and no
462 other calendar date item (@pxref{Calendar date items}) appears before it
463 in the date string, then @var{yyyy} is read as the year, @var{mm} as the
464 month number and @var{dd} as the day of the month, for the specified
465 calendar date.
467 If the decimal number is of the form @var{hh}@var{mm} and no other time
468 of day item appears before it in the date string, then @var{hh} is read
469 as the hour of the day and @var{mm} as the minute of the hour, for the
470 specified time of day.  @var{mm} can also be omitted.
472 If both a calendar date and a time of day appear to the left of a number
473 in the date string, but no relative item, then the number overrides the
474 year.
477 @node Seconds since the Epoch
478 @section Seconds since the Epoch
480 If you precede a number with @samp{@@}, it represents an internal
481 timestamp as a count of seconds.  The number can contain an internal
482 decimal point (either @samp{.} or @samp{,}); any excess precision not
483 supported by the internal representation is truncated toward minus
484 infinity.  Such a number cannot be combined with any other date
485 item, as it specifies a complete timestamp.
487 @cindex beginning of time, for POSIX
488 @cindex Epoch, for POSIX
489 Internally, computer times are represented as a count of seconds since
490 an Epoch---a well-defined point of time.  On GNU and
491 POSIX systems, the Epoch is 1970-01-01 00:00:00 UTC, so
492 @samp{@@0} represents this time, @samp{@@1} represents 1970-01-01
493 00:00:01 UTC, and so forth.  GNU and most other
494 POSIX-compliant systems support such times as an extension
495 to POSIX, using negative counts, so that @samp{@@-1}
496 represents 1969-12-31 23:59:59 UTC.
498 Most modern systems count seconds with 64-bit two's-complement integers
499 of seconds with nanosecond subcounts, which is a range that includes
500 the known lifetime of the universe with nanosecond resolution.
501 Some obsolescent systems count seconds with 32-bit two's-complement
502 integers and can represent times from 1901-12-13 20:45:52 through
503 2038-01-19 03:14:07 UTC@.  A few systems sport other time ranges.
505 @cindex leap seconds
506 On most hosts, these counts ignore the presence of leap seconds.
507 For example, on most hosts @samp{@@1483228799} represents 2016-12-31
508 23:59:59 UTC, @samp{@@1483228800} represents 2017-01-01 00:00:00
509 UTC, and there is no way to represent the intervening leap second
510 2016-12-31 23:59:60 UTC.
512 @node Specifying time zone rules
513 @section Specifying time zone rules
515 @vindex TZ
516 Normally, dates are interpreted using the rules of the current time
517 zone, which in turn are specified by the @env{TZ} environment
518 variable, or by a system default if @env{TZ} is not set.  To specify a
519 different set of default time zone rules that apply just to one date,
520 start the date with a string of the form @samp{TZ="@var{rule}"}.  The
521 two quote characters (@samp{"}) must be present in the date, and any
522 quotes or backslashes within @var{rule} must be escaped by a
523 backslash.
525 For example, with the GNU @command{date} command you can
526 answer the question ``What time is it in New York when a Paris clock
527 shows 6:30am on October 31, 2019?'' by using a date beginning with
528 @samp{TZ="Europe/Paris"} as shown in the following shell transcript:
530 @example
531 $ export TZ="America/New_York"
532 $ date --date='TZ="Europe/Paris" 2019-10-31 06:30'
533 Sun Oct 31 01:30:00 EDT 2019
534 @end example
536 In this example, the @option{--date} operand begins with its own
537 @env{TZ} setting, so the rest of that operand is processed according
538 to @samp{Europe/Paris} rules, treating the string @samp{2019-10-31
539 06:30} as if it were in Paris.  However, since the output of the
540 @command{date} command is processed according to the overall time zone
541 rules, it uses New York time.  (Paris was normally six hours ahead of
542 New York in 2019, but this example refers to a brief Halloween period
543 when the gap was five hours.)
545 A @env{TZ} value is a rule that typically names a location in the
546 @uref{https://www.iana.org/time-zones, @samp{tz} database}.
547 A recent catalog of location names appears in the
548 @uref{https://twiki.org/cgi-bin/xtra/tzdatepick.html, TWiki Date and Time
549 Gateway}.  A few non-GNU hosts require a colon before a
550 location name in a @env{TZ} setting, e.g.,
551 @samp{TZ=":America/New_York"}.
553 The @samp{tz} database includes a wide variety of locations ranging
554 from @samp{Arctic/Longyearbyen} to @samp{Antarctica/South_Pole}, but
555 if you are at sea and have your own private time zone, or if you are
556 using a non-GNU host that does not support the @samp{tz}
557 database, you may need to use a POSIX rule instead.  Simple
558 POSIX rules like @samp{UTC0} specify a time zone without
559 daylight saving time; other rules can specify simple daylight saving
560 regimes.  @xref{TZ Variable,, Specifying the Time Zone with @code{TZ},
561 libc, The GNU C Library}.
563 @node Authors of parse_datetime
564 @section Authors of @code{parse_datetime}
565 @c the anchor keeps the old node name, to try to avoid breaking links
566 @anchor{Authors of get_date}
568 @cindex authors of @code{parse_datetime}
570 @cindex Bellovin, Steven M.
571 @cindex Salz, Rich
572 @cindex Berets, Jim
573 @cindex MacKenzie, David
574 @cindex Meyering, Jim
575 @cindex Eggert, Paul
576 @code{parse_datetime} started life as @code{getdate}, as originally
577 implemented by Steven M. Bellovin
578 (@email{smb@@research.att.com}) while at the University of North Carolina
579 at Chapel Hill.  The code was later tweaked by a couple of people on
580 Usenet, then completely overhauled by Rich $alz (@email{rsalz@@bbn.com})
581 and Jim Berets (@email{jberets@@bbn.com}) in August, 1990.  Various
582 revisions for the GNU system were made by David MacKenzie, Jim Meyering,
583 Paul Eggert and others, including renaming it to @code{get_date} to
584 avoid a conflict with the alternative Posix function @code{getdate},
585 and a later rename to @code{parse_datetime}.  The Posix function
586 @code{getdate} can parse more locale-specific dates using
587 @code{strptime}, but relies on an environment variable and external
588 file, and lacks the thread-safety of @code{parse_datetime}.
590 @cindex Pinard, F.
591 @cindex Berry, K.
592 This chapter was originally produced by Fran@,{c}ois Pinard
593 (@email{pinard@@iro.umontreal.ca}) from the @file{parse_datetime.y} source code,
594 and then edited by K. Berry (@email{kb@@cs.umb.edu}).