X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fparse-duration.h;h=beab3cf66bd4d9f0da54a711efe95120d0316d5e;hb=2bf5212a9072b050b2a44c9695305c605e1b7dbe;hp=fbc732ff39c0e4110713c22970831353174c3b61;hpb=6c95f03dbe22357828df688bc272f893afff4492;p=gnulib.git diff --git a/lib/parse-duration.h b/lib/parse-duration.h index fbc732ff3..beab3cf66 100644 --- a/lib/parse-duration.h +++ b/lib/parse-duration.h @@ -28,10 +28,12 @@ ==== if it is a digit - the string may contain: NNN d NNN h NNN m NNN s - This represents NNN days, NNN hours, NNN minutes and NNN seconds. + the string may contain: NNN Y NNN M NNN W NNN d NNN h NNN m NNN s + This represents NNN years, NNN months, NNN weeks, NNN days, NNN hours, + NNN minutes and NNN seconds. The embeded white space is optional. These terms must appear in this order. + Case is significant: 'M' is months and 'm' is minutes. The final "s" is optional. All of the terms ("NNN" plus designator) are optional. Minutes and seconds may optionally be represented as NNN:NNN.