From 8e7bc120761bfc8920f8868f8e451118ea5f47a8 Mon Sep 17 00:00:00 2001
From: Karl Berry 2015-03-20
+
++
+The datetime package is a LAT The datetime package is a LATEX2" package that provides various di erent formats
-for \today, and provides commands for displaying the current time. If you only want
-the time commands but not the date changing commands, you can pass the option
+class="cmmi-10">ε
Since version 2.4, the datetime package has been separated into two packages: +
Since version 2.4, the datetime package has been separated into two packages: datetime and fmtcount. When I originally created this package, I de ned the -commands, \ordinal etc which could be used in the de nition of \today. Since -then, I have extended the number of commands available that can be used to display -the value of a LATEX counter, however it seems more appropriate to de ne all these +class="cmss-10">datetime and fmtcount. When I originally created this package, I defined the commands, +\ordinal etc which could be used in the definition of \today. Since then, I have +extended the number of commands available that can be used to display the value +of a LATEX counter, however it seems more appropriate to define all these counter-related commands in a separate package. The fmtcountfmtcount package is now distributed separately from the datetime package, and will also need to be +class="cmss-10">datetime package, and will also need to be installed. -
As from version 2.42, the datetime package is now compatible with babel, -however you must load the datetime package after the babel package. For -example: +
As from version 2.42, the datetime package is now compatible with babel, however +you must load the datetime package after the babel package. For example: +
--
+
+
-
There are various declarations that change the e ect of \today
There are various declarations that change the effect of \today. The change can be localised by placing the declaration within a group. -
As from version 2.43, the numerical date formats (such as \ddmmyyyydate As from version 2.43, the numerical date formats (such as \ddmmyyyydate) use the
command
-
-to separate the numbers. So, for example, if you want to hyphens instead of slashes,
-you can do:
+class="cmtt-10">\dateseparator
-
+
+to separate the numbers. So, for example, if you want to hyphens instead of slashes, you +can do: +
--
+
+
-
+This declaration will redefine \today to produce the current date displayed in -the form 2000/03/08. (You can rede ne \dateseparator\dateseparator to - to change to +class="cmtt-10">- to change to 2000-03-08.) -
+
-
-This declaration will rede ne \today to produce the current date displayed in the -form Wednesday 8th March, 2000 if the package option dayofweek\longdate
+This declaration will redefine \today to produce the current date displayed in the form +Wednesday 8th March, 2000 if the package option dayofweek is used, or 8th -March, 2000 if the package option nodayofweekth March, 2000 +if the package option nodayofweek is used. -
-This declaration will rede ne \today to produce the current date displayed in the -form Wed 8th Mar, 2000 if the package option dayofweek\shortdate
+This declaration will redefine \today to produce the current date displayed in the form +Wed 8th Mar, 2000 if the package option dayofweek is used, or 8th Mar, 2000 if -the package option nodayofweekth Mar, 2000 if the +package option nodayofweek is used. -
-This declaration will rede ne \today to produce the current date displayed in the -form 08/03/2000. -
+This declaration will redefine \today to produce the current date displayed in the form +08/03/2000. +
-This declaration will rede ne \today to produce the current date displayed in the -form 8/3/2000. -
+This declaration will redefine \today to produce the current date displayed in the form +8/3/2000. +
+This declaration will redefine \today to produce the current date displayed in the form +08/03/00. +
-This declaration will rede ne \today to produce the current date displayed in the -form 08/03/00. -
-This declaration will rede ne \today to produce the current date displayed in the -form 8/3/00. -
+This declaration will redefine \today to produce the current date displayed in the form +8/3/00. +
-This declaration will rede ne \today to produce the current date displayed in -the form: Wednesday the Eighth of March, Two Thousand if the package +class="cmtt-10">\textdate
+This declaration will redefine \today to produce the current date displayed +in the form: Wednesday the Eighth of March, Two Thousand if the package option dayofweekdayofweek is used, or Eighth of March, Two Thousand if the package option nodayofweeknodayofweek is used. Note that \textdate is de ned for use with -English, it won't look right if it is used when another language has been +class="cmtt-10">\textdate is defined for use with +English, it won’t look right if it is used when another language has been selected1. -If you want to de ne a similar command for another language, you will rst need to +If you want to define a similar command for another language, you will first need to check that the fmtcountfmtcount package supports that language. -
+
-
-This declaration will rede ne \today to produce the current date displayed in the -form March 8, 2000. (As T\usdate
+This declaration will redefine \today to produce the current date displayed in the form +March 8, 2000. (As TEX and LATEX do by default.) -
-This declaration will rede ne \today to produce the current date displayed in the -form 03/08/2000. -
+This declaration will redefine \today to produce the current date displayed in the form +03/08/2000. +
-This declaration will rede ne \today to produce the current date displayed in the -form 3/8/2000. -
+This declaration will redefine \today to produce the current date displayed in the form +3/8/2000. +
-This declaration will rede ne \today to produce the current date displayed in the -form 03/08/00. -
+This declaration will redefine \today to produce the current date displayed in the form +03/08/00. +
-This declaration will rede ne \today to produce the current date displayed in the -form 3/8/00. - - -
-
-In addition to the above, the declarations \datehlangi are available for all languages -de ned either by calling babel prior to datetime or by passing the language name as -an option to datetime. See