diff options
57 files changed, 6955 insertions, 1774 deletions
diff --git a/Master/texmf-dist/doc/latex/datetime/CHANGES b/Master/texmf-dist/doc/latex/datetime/CHANGES index 0603e5d8642..766dcd017f3 100644 --- a/Master/texmf-dist/doc/latex/datetime/CHANGES +++ b/Master/texmf-dist/doc/latex/datetime/CHANGES @@ -1,5 +1,14 @@ datetime.sty history +Version 2.58: + + * Added Polish days of the week (supplied by Piotr Kempa). + + * Fixed bug that caused some of the def files to be truncated when + unpacked from the dtx file. + + * Added \loadDTdef to ensure dt-*.def files are only loaded once. + Version 2.57: * Added Romanian days of the week (supplied by Daniel Dumitriu). diff --git a/Master/texmf-dist/doc/latex/datetime/datetime-manual.css b/Master/texmf-dist/doc/latex/datetime/datetime-manual.css new file mode 100644 index 00000000000..1e03683653c --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime/datetime-manual.css @@ -0,0 +1,147 @@ + +/* start css.sty */ +.cmmi-10{font-style: italic;} +.cmr-17{font-size:170%;} +.cmr-12{font-size:120%;} +.cmr-8{font-size:80%;} +.cmsy-8{font-size:80%;} +.cmtt-12{font-size:120%;font-family: monospace;} +.cmtt-12{font-family: monospace;} +.cmtt-12{font-family: monospace;} +.cmtt-12{font-family: monospace;} +.cmtt-10{font-family: monospace;} +.cmtt-10{font-family: monospace;} +.cmtt-10{font-family: monospace;} +.cmtt-10{font-family: monospace;} +.cmti-10{ font-style: italic;} +.cmss-10{ font-family: sans-serif;} +.cmss-10{ font-family: sans-serif;} +.cmss-10{ font-family: sans-serif;} +.cmtt-9{font-size:90%;font-family: monospace;} +.cmtt-9{font-family: monospace;} +.cmtt-9{font-family: monospace;} +.cmtt-9{font-family: monospace;} +.cmr-9{font-size:90%;} +.cmss-8{font-size:80%; font-family: sans-serif;} +.cmss-8{ font-family: sans-serif;} +.cmss-8{ font-family: sans-serif;} +.cmbx-10{ font-weight: bold;} +.cmtt-8{font-size:80%;font-family: monospace;} +.cmtt-8{font-family: monospace;} +.cmtt-8{font-family: monospace;} +.cmtt-8{font-family: monospace;} +.cmssbx-10{ font-family: sans-serif; font-weight: bold;} +.cmssbx-10{ font-family: sans-serif; font-weight: bold;} +.cmssbx-10{ font-family: sans-serif; font-weight: bold;} +p.noindent { text-indent: 0em } +td p.noindent { text-indent: 0em; margin-top:0em; } +p.nopar { text-indent: 0em; } +p.indent{ text-indent: 1.5em } +@media print {div.crosslinks {visibility:hidden;}} +a img { border-top: 0; border-left: 0; border-right: 0; } +center { margin-top:1em; margin-bottom:1em; } +td center { margin-top:0em; margin-bottom:0em; } +.Canvas { position:relative; } +img.math{vertical-align:middle;} +li p.indent { text-indent: 0em } +li p:first-child{ margin-top:0em; } +li p:last-child, li div:last-child { margin-bottom:0.5em; } +li p~ul:last-child, li p~ol:last-child{ margin-bottom:0.5em; } +.enumerate1 {list-style-type:decimal;} +.enumerate2 {list-style-type:lower-alpha;} +.enumerate3 {list-style-type:lower-roman;} +.enumerate4 {list-style-type:upper-alpha;} +div.newtheorem { margin-bottom: 2em; margin-top: 2em;} +.obeylines-h,.obeylines-v {white-space: nowrap; } +div.obeylines-v p { margin-top:0; margin-bottom:0; } +.overline{ text-decoration:overline; } +.overline img{ border-top: 1px solid black; } +td.displaylines {text-align:center; white-space:nowrap;} +.centerline {text-align:center;} +.rightline {text-align:right;} +div.verbatim {font-family: monospace; white-space: nowrap; text-align:left; clear:both; } +.fbox {padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } +div.fbox {display:table} +div.center div.fbox {text-align:center; clear:both; padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } +div.minipage{width:100%;} +div.center, div.center div.center {text-align: center; margin-left:1em; margin-right:1em;} +div.center div {text-align: left;} +div.flushright, div.flushright div.flushright {text-align: right;} +div.flushright div {text-align: left;} +div.flushleft {text-align: left;} +.underline{ text-decoration:underline; } +.underline img{ border-bottom: 1px solid black; margin-bottom:1pt; } +.framebox-c, .framebox-l, .framebox-r { padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } +.framebox-c {text-align:center;} +.framebox-l {text-align:left;} +.framebox-r {text-align:right;} +span.thank-mark{ vertical-align: super } +span.footnote-mark sup.textsuperscript, span.footnote-mark a sup.textsuperscript{ font-size:80%; } +div.footnotes{border-top:solid 1px black; border-bottom:solid 1px black; padding-bottom:1ex; padding-top:0.5ex; margin-right:15%; margin-top:2ex; font-style:italic; font-size:85%;} +div.footnotes p{margin-top:0; margin-bottom:0; text-indent:0;} +div.tabular, div.center div.tabular {text-align: center; margin-top:0.5em; margin-bottom:0.5em; } +table.tabular td p{margin-top:0em;} +table.tabular {margin-left: auto; margin-right: auto;} +td p:first-child{ margin-top:0em; } +td p:last-child{ margin-bottom:0em; } +div.td00{ margin-left:0pt; margin-right:0pt; } +div.td01{ margin-left:0pt; margin-right:5pt; } +div.td10{ margin-left:5pt; margin-right:0pt; } +div.td11{ margin-left:5pt; margin-right:5pt; } +table[rules] {border-left:solid black 0.4pt; border-right:solid black 0.4pt; } +td.td00{ padding-left:0pt; padding-right:0pt; } +td.td01{ padding-left:0pt; padding-right:5pt; } +td.td10{ padding-left:5pt; padding-right:0pt; } +td.td11{ padding-left:5pt; padding-right:5pt; } +table[rules] {border-left:solid black 0.4pt; border-right:solid black 0.4pt; } +.hline hr, .cline hr{ height : 1px; margin:0px; } +.tabbing-right {text-align:right;} +span.TEX {letter-spacing: -0.125em; } +span.TEX span.E{ position:relative;top:0.5ex;left:-0.0417em;} +a span.TEX span.E {text-decoration: none; } +span.LATEX span.A{ position:relative; top:-0.5ex; left:-0.4em; font-size:85%;} +span.LATEX span.TEX{ position:relative; left: -0.4em; } +div.float, div.figure {margin-left: auto; margin-right: auto;} +div.float img {text-align:center;} +div.figure img {text-align:center;} +.marginpar {width:20%; float:right; text-align:left; margin-left:auto; margin-top:0.5em; font-size:85%; text-decoration:underline;} +.marginpar p{margin-top:0.4em; margin-bottom:0.4em;} +table.equation {width:100%;} +.equation td{text-align:center; } +td.equation { margin-top:1em; margin-bottom:1em; } +td.equation-label { width:5%; text-align:center; } +td.eqnarray4 { width:5%; white-space: normal; } +td.eqnarray2 { width:5%; } +table.eqnarray-star, table.eqnarray {width:100%;} +div.eqnarray{text-align:center;} +div.array {text-align:center;} +div.pmatrix {text-align:center;} +table.pmatrix {width:100%;} +span.pmatrix img{vertical-align:middle;} +div.pmatrix {text-align:center;} +table.pmatrix {width:100%;} +span.bar-css {text-decoration:overline;} +img.cdots{vertical-align:middle;} +.partToc a, .partToc, .likepartToc a, .likepartToc {line-height: 200%; font-weight:bold; font-size:110%;} +.index-item, .index-subitem, .index-subsubitem {display:block} +div.caption {text-indent:-2em; margin-left:3em; margin-right:1em; text-align:left;} +div.caption span.id{font-weight: bold; white-space: nowrap; } +h1.partHead{text-align: center} +p.bibitem { text-indent: -2em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } +p.bibitem-p { text-indent: 0em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } +.paragraphHead, .likeparagraphHead { margin-top:2em; font-weight: bold;} +.subparagraphHead, .likesubparagraphHead { font-weight: bold;} +.quote {margin-bottom:0.25em; margin-top:0.25em; margin-left:1em; margin-right:1em; text-align:justify;} +.verse{white-space:nowrap; margin-left:2em} +div.maketitle {text-align:center;} +h2.titleHead{text-align:center;} +div.maketitle{ margin-bottom: 2em; } +div.author, div.date {text-align:center;} +div.thanks{text-align:left; margin-left:10%; font-size:85%; font-style:italic; } +.quotation {margin-bottom:0.25em; margin-top:0.25em; margin-left:1em; } +.abstract p {margin-left:5%; margin-right:5%;} +div.abstract {width:100%;} +table.multicols { width:100%; margin-left:1em; margin-top:1em; margin-bottom:1em; } +div.important { background-color:red; } +/* end css.sty */ + diff --git a/Master/texmf-dist/doc/latex/datetime/datetime-manual.html b/Master/texmf-dist/doc/latex/datetime/datetime-manual.html index 984a8618a5c..4fb4601e7a9 100644 --- a/Master/texmf-dist/doc/latex/datetime/datetime-manual.html +++ b/Master/texmf-dist/doc/latex/datetime/datetime-manual.html @@ -1,937 +1,2346 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> - -<!--Converted with LaTeX2HTML 2002 (1.67) -original version by: Nikos Drakos, CBLU, University of Leeds -* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan -* with significant contributions from: - Jens Lippmann, Marek Rouchal, Martin Wilck and others --> -<HTML> -<HEAD> -<TITLE>datetime.sty v2.57: Formatting Current Date and Time</TITLE> -<META NAME="description" CONTENT="datetime.sty v2.57: Formatting Current Date and Time"> -<META NAME="keywords" CONTENT="datetime-manual"> -<META NAME="resource-type" CONTENT="document"> -<META NAME="distribution" CONTENT="global"> - -<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> -<META NAME="Generator" CONTENT="LaTeX2HTML v2002"> -<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"> - - -</HEAD> - -<BODY > - -<P> - - <H1 ALIGN="CENTER">datetime.sty v2.57: Formatting Current Date and -Time</H1> -<P ALIGN="CENTER"><STRONG>Nicola L. C. Talbot -<BR> -<BR> -School of Computing Sciences -<BR> -University of East Anglia -<BR> -Norwich. NR4 7TJ. -<BR> -United Kingdom. -<BR> <TT><A NAME="tex2html1" - HREF="http://theoval.cmp.uea.ac.uk/~nlct/">http://theoval.cmp.uea.ac.uk/~nlct/</A></TT></STRONG></P> -<P ALIGN="CENTER"><STRONG>6th Feb 2010</STRONG></P> - <BR> - -<H2><A NAME="SECTION00010000000000000000"> -Contents</A> -</H2> -<!--Table of Contents--> - -<UL> -<LI><A NAME="tex2html24" - HREF="datetime-manual.html#SECTION00020000000000000000">Introduction</A> -<LI><A NAME="tex2html25" - HREF="datetime-manual.html#SECTION00030000000000000000">Predefined Date Formats</A> -<LI><A NAME="tex2html26" - HREF="datetime-manual.html#SECTION00040000000000000000">Time Commands</A> -<LI><A NAME="tex2html27" - HREF="datetime-manual.html#SECTION00050000000000000000">Formating Dates</A> -<LI><A NAME="tex2html28" - HREF="datetime-manual.html#SECTION00060000000000000000">Defining New Date Formats</A> -<LI><A NAME="tex2html29" - HREF="datetime-manual.html#SECTION00070000000000000000">Saving Dates</A> -<LI><A NAME="tex2html30" - HREF="datetime-manual.html#SECTION00080000000000000000">Predefined Names</A> -<LI><A NAME="tex2html31" - HREF="datetime-manual.html#SECTION00090000000000000000">Package Options</A> -<LI><A NAME="tex2html32" - HREF="datetime-manual.html#SECTION000100000000000000000">Multilingual Support</A> -<LI><A NAME="tex2html33" - HREF="datetime-manual.html#SECTION000110000000000000000">Registers</A> -<LI><A NAME="tex2html34" - HREF="datetime-manual.html#SECTION000120000000000000000">Configuration File</A> -<LI><A NAME="tex2html35" - HREF="datetime-manual.html#SECTION000130000000000000000">LaTeX2HTML styles</A> -<LI><A NAME="tex2html36" - HREF="datetime-manual.html#SECTION000140000000000000000">Troubleshooting</A> -</UL> -<!--End of Table of Contents--> -<H1><A NAME="SECTION00020000000000000000"> -Introduction</A> -</H1> - -The <TT>datetime</TT> package is a LaTeX2e package that -provides various different formats for <TT>\today</TT>, -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 <TT>nodate</TT> to the package. - -<P> -Since version 2.4, the <TT>datetime</TT> package has been -separated into two packages: <TT>datetime</TT> and -<TT>fmtcount</TT>. When I originally created this package, -I defined the commands, <TT>\ordinal</TT> etc which could be used -in the definition of <TT>\today</TT>. 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 <TT>fmtcount</TT> package is now distributed separately -from the <TT>datetime</TT> package, and will also need to -be installed. - -<P> -As from version 2.42, the <TT>datetime</TT> package is now -compatible with <TT>babel</TT>, however you must load the -<TT>datetime</TT> package <I>after</I> the <TT>babel</TT> package. -For example: -<PRE> -\usepackage[francais]{babel} -\usepackage{datetime} -</PRE> - -<P> - -<H1><A NAME="SECTION00030000000000000000"> -Predefined Date Formats</A> -</H1> - There are various declarations that change the effect of -<TT>\today</TT>. The change can be localised by placing the -declaration within a group. - -<P> -ISO format: +<a + id="top"></a><?xml version="1.0" encoding="iso-8859-1" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd--> +<html xmlns="http://www.w3.org/1999/xhtml" +> +<head><title>datetime.sty v2.58: Formatting Current Date and Time</title> +<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> +<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" /> +<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" /> +<!-- xhtml,fn-in,css-in --> +<meta name="src" content="datetime-manual.tex" /> +<meta name="date" content="2010-09-21 10:07:00" /> - The declaration <code>\yyyymmdddate</code> will redefine -<code>\today</code> to produce - the current date displayed in the form 2000/03/08. (You can -redefine <TT>\dateseparator</TT> to <TT>-</TT> to change to -2000-03-08.) - -<P> - - <I>Day</I> <I>Month</I> <I>Year</I> formats: -<BR> -The declaration <code>\longdate</code> will redefine -<code>\today</code> to produce the current date displayed in the form -Wednesday 8<SUP>th</SUP> March, 2000 - if the package option <TT>dayofweek</TT> is used, or -8<SUP>th</SUP> March, 2000 if the package option - <TT>nodayofweek</TT> is used. -<BR> -The declaration <code>\shortdate</code> will redefine -<code>\today</code> to produce the current date displayed in the form -Wed 8<SUP>th</SUP> Mar, 2000 if the package option -<TT>dayofweek</TT> is used, or 8<SUP>th</SUP> Mar, 2000 -if the package option <TT>nodayofweek</TT> is used. -<BR> -The declaration <code>\ddmmyyyydate</code> will redefine -<code>\today</code> to produce - the current date displayed in the form 08/03/2000 -<BR> -The declaration <code>\dmyyyydate</code> will redefine -<code>\today</code> to produce - the current date displayed in the form 8/3/2000 -<BR> -The declaration <code>\ddmmyydate</code> will redefine -<code>\today</code> to produce - the current date displayed in the form 08/03/00 -<BR> -The declaration <code>\dmyydate</code> will redefine -<code>\today</code> to produce - the current date displayed in the form 8/3/00 -<BR> -The declaration <code>\textdate</code> will redefine -<code>\today</code> to produce the current date displayed in the form: -Wednesday the Eighth of March, Two Thousand if the package option -<TT>dayofweek</TT> is used, or Eighth of March, Two Thousand if -the package option <TT>nodayofweek</TT> is used. Note that -<code>\textdate</code> is defined for use with English, it won't -look right if it is used when another language has been -selected<A NAME="tex2html2" - HREF="#foot456"><SUP>1</SUP></A>. If you want to define a similar command for -another language, you will first need to check that the -<TT>fmtcount</TT> package supports that language. - -<P> - - <I>Month</I> <I>Day</I> <I>Year</I> formats: -<BR> -The declaration <code>\usdate</code> will redefine -<code>\today</code> to produce the current date displayed in the form -March 8, 2000. (As TeX and LaTeX do by default.) -<BR> -The declaration <code>\mmddyyyydate</code> will redefine -<code>\today</code> to produce the current date displayed in the form -03/08/2000 -<BR> -The declaration <code>\mdyyyydate</code> will redefine -<code>\today</code> to produce the current date displayed in the form -3/8/2000 -<BR> -The declaration <code>\mmddyydate</code> will redefine -<code>\today</code> to produce the current date displayed in the form -03/08/00 -<BR> -The declaration <code>\mdyydate</code> will redefine -<code>\today</code> to produce the current date displayed in the form -3/8/00 - -<P> -In addition, the declarations <code>\date</code><I>lang</I> are -available for all languages defined either by -calling <TT>babel</TT> prior to <TT>datetime</TT> or by -passing the language name as an option to <TT>datetime</TT>. -See <A HREF="datetime-manual.html#sec:newdate">later</A> -if you want to define your own customised date format. - -<P> -As from version 2.43, the numerical date formats (such as -<code>\ddmmyyyydate</code>) use the command -<code>\dateseparator</code> to separate the numbers. So, for example, -if you want to hyphens instead of slashes, you can do: -<PRE> +<style type="text/css"> +<!-- + +/* start css.sty */ +.cmmi-10{font-style: italic;} +.cmr-17{font-size:170%;} +.cmr-12{font-size:120%;} +.cmr-8{font-size:80%;} +.cmsy-8{font-size:80%;} +.cmtt-12{font-size:120%;font-family: monospace;} +.cmtt-12{font-family: monospace;} +.cmtt-12{font-family: monospace;} +.cmtt-12{font-family: monospace;} +.cmtt-10{font-family: monospace;} +.cmtt-10{font-family: monospace;} +.cmtt-10{font-family: monospace;} +.cmtt-10{font-family: monospace;} +.cmti-10{ font-style: italic;} +.cmss-10{ font-family: sans-serif;} +.cmss-10{ font-family: sans-serif;} +.cmss-10{ font-family: sans-serif;} +.cmtt-9{font-size:90%;font-family: monospace;} +.cmtt-9{font-family: monospace;} +.cmtt-9{font-family: monospace;} +.cmtt-9{font-family: monospace;} +.cmr-9{font-size:90%;} +.cmss-8{font-size:80%; font-family: sans-serif;} +.cmss-8{ font-family: sans-serif;} +.cmss-8{ font-family: sans-serif;} +.cmbx-10{ font-weight: bold;} +.cmtt-8{font-size:80%;font-family: monospace;} +.cmtt-8{font-family: monospace;} +.cmtt-8{font-family: monospace;} +.cmtt-8{font-family: monospace;} +.cmssbx-10{ font-family: sans-serif; font-weight: bold;} +.cmssbx-10{ font-family: sans-serif; font-weight: bold;} +.cmssbx-10{ font-family: sans-serif; font-weight: bold;} +p.noindent { text-indent: 0em } +td p.noindent { text-indent: 0em; margin-top:0em; } +p.nopar { text-indent: 0em; } +p.indent{ text-indent: 1.5em } +@media print {div.crosslinks {visibility:hidden;}} +a img { border-top: 0; border-left: 0; border-right: 0; } +center { margin-top:1em; margin-bottom:1em; } +td center { margin-top:0em; margin-bottom:0em; } +.Canvas { position:relative; } +img.math{vertical-align:middle;} +li p.indent { text-indent: 0em } +li p:first-child{ margin-top:0em; } +li p:last-child, li div:last-child { margin-bottom:0.5em; } +li p~ul:last-child, li p~ol:last-child{ margin-bottom:0.5em; } +.enumerate1 {list-style-type:decimal;} +.enumerate2 {list-style-type:lower-alpha;} +.enumerate3 {list-style-type:lower-roman;} +.enumerate4 {list-style-type:upper-alpha;} +div.newtheorem { margin-bottom: 2em; margin-top: 2em;} +.obeylines-h,.obeylines-v {white-space: nowrap; } +div.obeylines-v p { margin-top:0; margin-bottom:0; } +.overline{ text-decoration:overline; } +.overline img{ border-top: 1px solid black; } +td.displaylines {text-align:center; white-space:nowrap;} +.centerline {text-align:center;} +.rightline {text-align:right;} +div.verbatim {font-family: monospace; white-space: nowrap; text-align:left; clear:both; } +.fbox {padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } +div.fbox {display:table} +div.center div.fbox {text-align:center; clear:both; padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } +div.minipage{width:100%;} +div.center, div.center div.center {text-align: center; margin-left:1em; margin-right:1em;} +div.center div {text-align: left;} +div.flushright, div.flushright div.flushright {text-align: right;} +div.flushright div {text-align: left;} +div.flushleft {text-align: left;} +.underline{ text-decoration:underline; } +.underline img{ border-bottom: 1px solid black; margin-bottom:1pt; } +.framebox-c, .framebox-l, .framebox-r { padding-left:3.0pt; padding-right:3.0pt; text-indent:0pt; border:solid black 0.4pt; } +.framebox-c {text-align:center;} +.framebox-l {text-align:left;} +.framebox-r {text-align:right;} +span.thank-mark{ vertical-align: super } +span.footnote-mark sup.textsuperscript, span.footnote-mark a sup.textsuperscript{ font-size:80%; } +div.footnotes{border-top:solid 1px black; border-bottom:solid 1px black; padding-bottom:1ex; padding-top:0.5ex; margin-right:15%; margin-top:2ex; font-style:italic; font-size:85%;} +div.footnotes p{margin-top:0; margin-bottom:0; text-indent:0;} +div.tabular, div.center div.tabular {text-align: center; margin-top:0.5em; margin-bottom:0.5em; } +table.tabular td p{margin-top:0em;} +table.tabular {margin-left: auto; margin-right: auto;} +td p:first-child{ margin-top:0em; } +td p:last-child{ margin-bottom:0em; } +div.td00{ margin-left:0pt; margin-right:0pt; } +div.td01{ margin-left:0pt; margin-right:5pt; } +div.td10{ margin-left:5pt; margin-right:0pt; } +div.td11{ margin-left:5pt; margin-right:5pt; } +table[rules] {border-left:solid black 0.4pt; border-right:solid black 0.4pt; } +td.td00{ padding-left:0pt; padding-right:0pt; } +td.td01{ padding-left:0pt; padding-right:5pt; } +td.td10{ padding-left:5pt; padding-right:0pt; } +td.td11{ padding-left:5pt; padding-right:5pt; } +table[rules] {border-left:solid black 0.4pt; border-right:solid black 0.4pt; } +.hline hr, .cline hr{ height : 1px; margin:0px; } +.tabbing-right {text-align:right;} +span.TEX {letter-spacing: -0.125em; } +span.TEX span.E{ position:relative;top:0.5ex;left:-0.0417em;} +a span.TEX span.E {text-decoration: none; } +span.LATEX span.A{ position:relative; top:-0.5ex; left:-0.4em; font-size:85%;} +span.LATEX span.TEX{ position:relative; left: -0.4em; } +div.float, div.figure {margin-left: auto; margin-right: auto;} +div.float img {text-align:center;} +div.figure img {text-align:center;} +.marginpar {width:20%; float:right; text-align:left; margin-left:auto; margin-top:0.5em; font-size:85%; text-decoration:underline;} +.marginpar p{margin-top:0.4em; margin-bottom:0.4em;} +table.equation {width:100%;} +.equation td{text-align:center; } +td.equation { margin-top:1em; margin-bottom:1em; } +td.equation-label { width:5%; text-align:center; } +td.eqnarray4 { width:5%; white-space: normal; } +td.eqnarray2 { width:5%; } +table.eqnarray-star, table.eqnarray {width:100%;} +div.eqnarray{text-align:center;} +div.array {text-align:center;} +div.pmatrix {text-align:center;} +table.pmatrix {width:100%;} +span.pmatrix img{vertical-align:middle;} +div.pmatrix {text-align:center;} +table.pmatrix {width:100%;} +span.bar-css {text-decoration:overline;} +img.cdots{vertical-align:middle;} +.partToc a, .partToc, .likepartToc a, .likepartToc {line-height: 200%; font-weight:bold; font-size:110%;} +.index-item, .index-subitem, .index-subsubitem {display:block} +div.caption {text-indent:-2em; margin-left:3em; margin-right:1em; text-align:left;} +div.caption span.id{font-weight: bold; white-space: nowrap; } +h1.partHead{text-align: center} +p.bibitem { text-indent: -2em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } +p.bibitem-p { text-indent: 0em; margin-left: 2em; margin-top:0.6em; margin-bottom:0.6em; } +.paragraphHead, .likeparagraphHead { margin-top:2em; font-weight: bold;} +.subparagraphHead, .likesubparagraphHead { font-weight: bold;} +.quote {margin-bottom:0.25em; margin-top:0.25em; margin-left:1em; margin-right:1em; text-align:justify;} +.verse{white-space:nowrap; margin-left:2em} +div.maketitle {text-align:center;} +h2.titleHead{text-align:center;} +div.maketitle{ margin-bottom: 2em; } +div.author, div.date {text-align:center;} +div.thanks{text-align:left; margin-left:10%; font-size:85%; font-style:italic; } +.quotation {margin-bottom:0.25em; margin-top:0.25em; margin-left:1em; } +.abstract p {margin-left:5%; margin-right:5%;} +div.abstract {width:100%;} +table.multicols { width:100%; margin-left:1em; margin-top:1em; margin-bottom:1em; } +div.important { background-color:red; } +/* end css.sty */ + + +--> +</style> +</head><body +> + <div class="maketitle"> + + + + + + + +<h2 class="titleHead">datetime.sty v2.58: Formatting Current Date and +Time</h2> + <div class="author" ><span +class="cmr-12">Nicola L. C. Talbot</span> +<br /> <span +class="cmr-12">School of Computing Sciences</span> +<br /> <span +class="cmr-12">University of East Anglia</span> +<br /> <span +class="cmr-12">Norwich. NR4 7TJ.</span> +<br /> <span +class="cmr-12">United Kingdom.</span> +<br /><a +href="http://theoval.cmp.uea.ac.uk/~nlct/" class="url" ><span +class="cmtt-12">http://theoval.cmp.uea.ac.uk/~nlct/</span></a></div><br /> +<div class="date" ><span +class="cmr-12">2010-09-21</span></div> + </div> + <h3 class="likesectionHead"><a + id="x1-1000"></a>Contents</h3> + <div class="tableofcontents"> + <span class="sectionToc" >1 <a +href="#x1-20001" id="QQ2-1-2">Introduction</a></span> +<br /> <span class="sectionToc" >2 <a +href="#x1-30002" id="QQ2-1-3">Predefined Date Formats</a></span> +<br />  <span class="subsectionToc" >2.1 <a +href="#x1-40002.1" id="QQ2-1-4">ISO format</a></span> +<br />  <span class="subsectionToc" >2.2 <a +href="#x1-50002.2" id="QQ2-1-5"><span +class="cmsy-10">⟨</span><span +class="cmti-10">Day</span><span +class="cmsy-10">⟩⟨</span><span +class="cmti-10">Month</span><span +class="cmsy-10">⟩⟨</span><span +class="cmti-10">Year</span><span +class="cmsy-10">⟩ </span>formats</a></span> +<br />  <span class="subsectionToc" >2.3 <a +href="#x1-60002.3" id="QQ2-1-6"><span +class="cmsy-10">⟨</span><span +class="cmti-10">Month</span><span +class="cmsy-10">⟩⟨</span><span +class="cmti-10">Day</span><span +class="cmsy-10">⟩⟨</span><span +class="cmti-10">Year</span><span +class="cmsy-10">⟩ </span>formats</a></span> +<br />  <span class="subsectionToc" >2.4 <a +href="#x1-70002.4" id="QQ2-1-7">Dates defined by <span +class="cmss-10">babel</span></a></span> +<br /> <span class="sectionToc" >3 <a +href="#x1-80003" id="QQ2-1-8">Time Commands</a></span> +<br /> <span class="sectionToc" >4 <a +href="#x1-90004" id="QQ2-1-9">Formating Dates</a></span> +<br /> <span class="sectionToc" >5 <a +href="#x1-100005" id="QQ2-1-10">Defining New Date Formats</a></span> +<br /> <span class="sectionToc" >6 <a +href="#x1-110006" id="QQ2-1-11">Saving Dates</a></span> +<br /> <span class="sectionToc" >7 <a +href="#x1-120007" id="QQ2-1-12">Predefined Names</a></span> +<br /> <span class="sectionToc" >8 <a +href="#x1-130008" id="QQ2-1-13">Package Options</a></span> +<br /> <span class="sectionToc" >9 <a +href="#x1-140009" id="QQ2-1-14">Multilingual Support</a></span> +<br /> <span class="sectionToc" >10 <a +href="#x1-1500010" id="QQ2-1-15">Registers</a></span> +<br /> <span class="sectionToc" >11 <a +href="#x1-1600011" id="QQ2-1-16">Configuration File</a></span> +<br /> <span class="sectionToc" >12 <a +href="#x1-1700012" id="QQ2-1-17">LaTeX2HTML styles</a></span> +<br /> <span class="sectionToc" >13 <a +href="#x1-1800013" id="QQ2-1-18">Troubleshooting</a></span> +<br /> <span class="sectionToc" ><a +href="#Q1-1-19">Index</a></span> + </div> + + + + <h3 class="sectionHead"><span class="titlemark">1 </span> <a + id="x1-20001"></a>Introduction</h3> +<a + id="dx1-2001"></a> +<a + id="dx1-2002"></a> +<!--l. 31--><p class="noindent" >The <span +class="cmss-10">datetime </span>package is a <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span +class="E">E</span>X</span></span>2<span +class="cmmi-10">ε</span> package that provides various different formats for +<span +class="cmtt-10">\today</span><a + id="dx1-2003"></a>, 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 <span +class="cmss-10">nodate</span><a + id="dx1-2004"></a> +to the package. <a + id="dx1-2005"></a> +<a + id="dx1-2006"></a> +</p><!--l. 41--><p class="indent" > Since version 2.4, the <span +class="cmss-10">datetime </span>package has been separated into two packages: +<span +class="cmss-10">datetime </span>and <span +class="cmss-10">fmtcount</span><a + id="dx1-2007"></a>. When I originally created this package, I defined the commands, +<span +class="cmtt-10">\ordinal</span><a + id="dx1-2008"></a> etc which could be used in the definition of <span +class="cmtt-10">\today</span>. Since then, I have +extended the number of commands available that can be used to display the value +of a <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span +class="E">E</span>X</span></span> counter, however it seems more appropriate to define all these +counter-related commands in a separate package. The <span +class="cmss-10">fmtcount</span><a + id="dx1-2009"></a> package is now +distributed separately from the <span +class="cmss-10">datetime </span>package, and will also need to be +installed. +<a + id="dx1-2010"></a> +</p><!--l. 54--><p class="indent" > As from version 2.42, the <span +class="cmss-10">datetime </span>package is now compatible with <span +class="cmss-10">babel</span><a + id="dx1-2011"></a>, however +you must load the <span +class="cmss-10">datetime </span>package <span +class="cmti-10">after </span>the <span +class="cmss-10">babel</span><a + id="dx1-2012"></a> package. For example: + + + +</p> + <div class="verbatim" id="verbatim-1"> +\usepackage[francais]{babel} + <br />\usepackage{datetime} +</div> +<!--l. 61--><p class="nopar" > +</p><!--l. 63--><p class="noindent" > +</p> +<!--l. 63--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">2 </span> <a + id="x1-30002"></a>Predefined Date Formats</h3> +<!--l. 64--><p class="noindent" >There are various declarations that change the effect of <span +class="cmtt-10">\today</span><a + id="dx1-3001"></a>. The change can be +localised by placing the declaration within a group. +</p><!--l. 68--><p class="indent" > As from version 2.43, the numerical date formats (such as <span +class="cmtt-10">\ddmmyyyydate</span><a + id="dx1-3002"></a>) use the +command +</p><!--l. 70--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\dateseparator</span><span +class="cmtt-9"> </span></span><a + id="dx1-3003"></a> <span +class="cmtt-10">\dateseparator </span></div><hr> +</p><!--l. 72--><p class="noindent" > +to separate the numbers. So, for example, if you want to hyphens instead of slashes, you +can do: + + + +</p> + <div class="verbatim" id="verbatim-2"> \renewcommand{\dateseparator}{-} -</PRE> - -<P> - -<H1><A NAME="SECTION00040000000000000000"> -Time Commands</A> -</H1> - - The current time is displayed using the command -<code>\currenttime</code>. - -<P> -A specific time can be displayed using -the command <TT>\formattime{</TT><EM>hour</EM><TT>}{</TT><EM>minute</EM><TT>}{</TT><EM>second</EM><TT>}</TT>, where -<I>hour</I> is a number from 0 to 23, and <I>minute</I> and -<I>second</I> are numbers from 0 to 59. - -<P> -The format can be changed using the declaration -<TT>\settimeformat{</TT><EM>style</EM><TT>}</TT>, where <I>style</I> is the name of the -format. Predefined formats are: -<DL> -<DT><STRONG>xxivtime</STRONG></DT> -<DD>Twenty-four hour time in the form 22:28 (Default) -</DD> -<DT><STRONG>hhmmsstime</STRONG></DT> -<DD>Twenty-four hour time in the form 22:28:00 -</DD> -<DT><STRONG>ampmtime</STRONG></DT> -<DD>Twelve hour time in the form 10:28pm -</DD> -<DT><STRONG>oclock</STRONG></DT> -<DD>Displays the current time as a string, e.g. -Twenty-Eight minutes past Ten in the afternoon. -</DD> -</DL> - -<P> -New time formats can be defined using the command: -<BR> -<BR><TT>\newtimeformat{</TT><EM>name</EM><TT>}{</TT><EM>format</EM><TT>}</TT> -<BR> -<BR> -where <I>name</I> is the name of the new format (used in -<TT>\settimeformat</TT>), and <I>format</I> is how to format the -time. Within <I>format</I> you can use the counters -<TT>HOUR</TT> (number of hours after midnight), <TT>MINUTE</TT> -(number of minutes past the hour), <TT>SECOND</TT> (number of -seconds) <TT>HOURXII</TT> (number of -hours after midnight/midday), <TT>TOHOUR</TT> (the next hour) and -<TT>TOMINUTE</TT> (number of minutes to the next hour), and the -corresponding commands: <TT>\THEHOUR</TT>, <TT>\THEMINUTE</TT>, <TT>\THESECOND</TT>, -<TT>\THEHOURXII</TT>, <TT>\THETOHOUR</TT> and <TT>\THETOMINUTE</TT>. - -<P> -For example, to define a new time format that uses a dot instead of a -colon: -<PRE> +</div> +<!--l. 77--><p class="nopar" > +</p><!--l. 79--><p class="noindent" > +</p> +<!--l. 79--><p class="noindent" ><a +href="#top">Top</a></p><h4 class="subsectionHead"><span class="titlemark">2.1 </span> <a + id="x1-40002.1"></a>ISO format</h4> +<!--l. 81--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\yyyymmdddate</span><span +class="cmtt-9"> </span></span><a + id="dx1-4001"></a> <span +class="cmtt-10">\yyyymmdddate </span></div><hr> +</p><!--l. 83--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-4002"></a> to produce the current date displayed in +the form 2000/03/08. (You can redefine <span +class="cmtt-10">\dateseparator</span><a + id="dx1-4003"></a> to <span +class="cmtt-10">- </span>to change to +2000-03-08.) +</p><!--l. 88--><p class="noindent" > +</p> +<!--l. 88--><p class="noindent" ><a +href="#top">Top</a></p><h4 class="subsectionHead"><span class="titlemark">2.2 </span> <a + id="x1-50002.2"></a><span +class="cmsy-10">⟨</span><span +class="cmti-10">Day</span><span +class="cmsy-10">⟩⟨</span><span +class="cmti-10">Month</span><span +class="cmsy-10">⟩⟨</span><span +class="cmti-10">Year</span><span +class="cmsy-10">⟩ </span>formats</h4> +<!--l. 90--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\longdate</span><span +class="cmtt-9"> </span></span><a + id="dx1-5001"></a> <span +class="cmtt-10">\longdate </span></div><hr> +</p><!--l. 92--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-5002"></a> to produce the current date displayed in the form +Wednesday 8<sup class="textsuperscript"><span +class="cmr-9">th</span></sup> March, 2000 if the package option <span +class="cmss-10">dayofweek</span><a + id="dx1-5003"></a> is used, or 8<sup class="textsuperscript"><span +class="cmr-9">th</span></sup> March, 2000 +if the package option <span +class="cmss-10">nodayofweek</span><a + id="dx1-5004"></a> is used. +</p><!--l. 99--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\shortdate</span><span +class="cmtt-9"> </span></span><a + id="dx1-5005"></a> <span +class="cmtt-10">\shortdate </span></div><hr> +</p><!--l. 101--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-5006"></a> to produce the current date displayed in the form +Wed 8<sup class="textsuperscript"><span +class="cmr-9">th</span></sup> Mar, 2000 if the package option <span +class="cmss-10">dayofweek</span><a + id="dx1-5007"></a> is used, or 8<sup class="textsuperscript"><span +class="cmr-9">th</span></sup> Mar, 2000 if the +package option <span +class="cmss-10">nodayofweek</span><a + id="dx1-5008"></a> is used. +</p><!--l. 108--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\ddmmyyyydate</span><span +class="cmtt-9"> </span></span><a + id="dx1-5009"></a> <span +class="cmtt-10">\ddmmyyyydate </span></div><hr> +</p><!--l. 110--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-5010"></a> to produce the current date displayed in the form +08/03/2000. +</p><!--l. 114--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\dmyyyydate</span><span +class="cmtt-9"> </span></span><a + id="dx1-5011"></a> <span +class="cmtt-10">\dmyyyydate </span></div><hr> +</p><!--l. 116--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-5012"></a> to produce the current date displayed in the form +8/3/2000. +</p><!--l. 120--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\ddmmyydate</span><span +class="cmtt-9"> </span></span><a + id="dx1-5013"></a> <span +class="cmtt-10">\ddmmyydate </span></div><hr> +</p><!--l. 122--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-5014"></a> to produce the current date displayed in the form +08/03/00. +</p><!--l. 126--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\dmyydate</span><span +class="cmtt-9"> </span></span><a + id="dx1-5015"></a> <span +class="cmtt-10">\dmyydate </span></div><hr> + + + +</p><!--l. 128--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-5016"></a> to produce the current date displayed in the form +8/3/00. +</p><!--l. 132--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\textdate</span><span +class="cmtt-9"> </span></span><a + id="dx1-5017"></a> <span +class="cmtt-10">\textdate </span></div><hr> +</p><!--l. 134--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-5018"></a> to produce the current date displayed +in the form: Wednesday the Eighth of March, Two Thousand if the package +option <span +class="cmss-10">dayofweek</span><a + id="dx1-5019"></a> is used, or Eighth of March, Two Thousand if the package +option <span +class="cmss-10">nodayofweek</span><a + id="dx1-5020"></a> is used. Note that <span +class="cmtt-10">\textdate </span>is defined for use with +English, it won’t look right if it is used when another language has been +selected<span class="footnote-mark"><a +href="#fn1x0" id="fn1x0-bk"><sup class="textsuperscript">1</sup></a></span><a + id="x1-5021f1"></a>. +If you want to define a similar command for another language, you will first need to +check that the <span +class="cmss-10">fmtcount</span><a + id="dx1-5023"></a> package supports that language. +</p><!--l. 147--><p class="noindent" > +</p> +<!--l. 147--><p class="noindent" ><a +href="#top">Top</a></p><h4 class="subsectionHead"><span class="titlemark">2.3 </span> <a + id="x1-60002.3"></a><span +class="cmsy-10">⟨</span><span +class="cmti-10">Month</span><span +class="cmsy-10">⟩⟨</span><span +class="cmti-10">Day</span><span +class="cmsy-10">⟩⟨</span><span +class="cmti-10">Year</span><span +class="cmsy-10">⟩ </span>formats</h4> +<!--l. 149--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\usdate</span><span +class="cmtt-9"> </span></span><a + id="dx1-6001"></a> <span +class="cmtt-10">\usdate </span></div><hr> +</p><!--l. 151--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today </span>to produce the current date displayed in the form +March 8, 2000. (As <span class="TEX">T<span +class="E">E</span>X</span> and <span class="LATEX">L<span class="A">A</span><span class="TEX">T<span +class="E">E</span>X</span></span> do by default.) +</p><!--l. 156--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\mmddyyyydate</span><span +class="cmtt-9"> </span></span><a + id="dx1-6002"></a> <span +class="cmtt-10">\mmddyyyydate </span></div><hr> +</p><!--l. 158--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-6003"></a> to produce the current date displayed in the form +03/08/2000. +</p><!--l. 162--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\mdyyyydate</span><span +class="cmtt-9"> </span></span><a + id="dx1-6004"></a> <span +class="cmtt-10">\mdyyyydate </span></div><hr> +</p><!--l. 164--><p class="noindent" > +This declaration will redefine <span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\today</span></span></span> to produce the current date displayed in the form +3/8/2000. +</p><!--l. 168--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\mmddyydate</span><span +class="cmtt-9"> </span></span><a + id="dx1-6005"></a> <span +class="cmtt-10">\mmddyydate </span></div><hr> +</p><!--l. 170--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-6006"></a> to produce the current date displayed in the form +03/08/00. +</p><!--l. 174--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\mdyydate</span><span +class="cmtt-9"> </span></span><a + id="dx1-6007"></a> <span +class="cmtt-10">\mdyydate </span></div><hr> +</p><!--l. 176--><p class="noindent" > +This declaration will redefine <span +class="cmtt-10">\today</span><a + id="dx1-6008"></a> to produce the current date displayed in the form +3/8/00. +</p><!--l. 180--><p class="noindent" > +</p> +<!--l. 180--><p class="noindent" ><a +href="#top">Top</a></p><h4 class="subsectionHead"><span class="titlemark">2.4 </span> <a + id="x1-70002.4"></a>Dates defined by <span +class="cmss-10">babel</span></h4> +<!--l. 182--><p class="noindent" >In addition to the above, the declarations <span +class="cmtt-10">\date</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">lang</span><span +class="cmsy-10">⟩ </span>are available for all languages +defined either by calling <span +class="cmss-10">babel</span><a + id="dx1-7001"></a> prior to <span +class="cmss-10">datetime </span>or by passing the language name as an + + + +option to <span +class="cmss-10">datetime</span>. See <a +href="#x1-100005"><span +class="cmsy-10">§</span>5 </a><a +href="#x1-100005">Defining New Date Formats<!--tex4ht:ref: sec:newdate --></a> if you want to define your own +customised date format. +</p><!--l. 188--><p class="noindent" > +</p> +<!--l. 188--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">3 </span> <a + id="x1-80003"></a>Time Commands</h3> +<!--l. 190--><p class="noindent" >The current time is displayed using the command +</p><!--l. 191--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\currenttime</span><span +class="cmtt-9"> </span></span><a + id="dx1-8001"></a> <span +class="cmtt-10">\currenttime </span></div><hr> +</p><!--l. 193--><p class="noindent" > +</p><!--l. 195--><p class="indent" > A specific time can be displayed using the command +</p><!--l. 196--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\formattime</span><span +class="cmtt-9"> </span></span><a + id="dx1-8002"></a> <span +class="cmtt-10">\formattime{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">hour</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">minute</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">second</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 198--><p class="noindent" > +where <span +class="cmsy-10">⟨</span><span +class="cmti-10">hour</span><span +class="cmsy-10">⟩ </span>is a number from 0 to 23, and <span +class="cmsy-10">⟨</span><span +class="cmti-10">minute</span><span +class="cmsy-10">⟩ </span>and <span +class="cmsy-10">⟨</span><span +class="cmti-10">second</span><span +class="cmsy-10">⟩ </span>are numbers +from 0 to 59. +</p><!--l. 202--><p class="indent" > The format can be changed using the declaration +</p><!--l. 203--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\settimeformat</span><span +class="cmtt-9"> </span></span><a + id="dx1-8003"></a> <span +class="cmtt-10">\settimeformat{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">style</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 205--><p class="noindent" > +where <span +class="cmsy-10">⟨</span><span +class="cmti-10">style</span><span +class="cmsy-10">⟩ </span>is the name of the format. Predefined formats are: + </p><dl class="description"><dt class="description"> +<span +class="cmbx-10">xxivtime</span> </dt><dd +class="description">Twenty-four hour time in the form 22:28 (Default) + </dd><dt class="description"> +<span +class="cmbx-10">hhmmsstime</span> </dt><dd +class="description">Twenty-four hour time in the form 22:28:00 + </dd><dt class="description"> +<span +class="cmbx-10">ampmtime</span> </dt><dd +class="description">Twelve hour time in the form 10:28pm + </dd><dt class="description"> +<span +class="cmbx-10">oclock</span> </dt><dd +class="description">Displays the current time as a string, e.g. Twenty-Eight minutes past Ten + in the afternoon.</dd></dl> +<!--l. 216--><p class="indent" > New time formats can be defined using the command: +</p><!--l. 217--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\newtimeformat</span><span +class="cmtt-9"> </span></span><a + id="dx1-8004"></a> <span +class="cmtt-10">\newtimeformat{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">name</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">format</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 219--><p class="noindent" > +where <span +class="cmsy-10">⟨</span><span +class="cmti-10">name</span><span +class="cmsy-10">⟩ </span>is the name of the new format (used in <span +class="cmtt-10">\settimeformat</span><a + id="dx1-8005"></a>), and <span +class="cmsy-10">⟨</span><span +class="cmti-10">format</span><span +class="cmsy-10">⟩</span> +is how to format the time. Within <span +class="cmsy-10">⟨</span><span +class="cmti-10">format</span><span +class="cmsy-10">⟩ </span>you can use the counters <span +class="cmss-10">HOUR</span><a + id="dx1-8006"></a> (number of +hours after midnight), <span +class="cmss-10">MINUTE</span><a + id="dx1-8007"></a> (number of minutes past the hour), <span +class="cmss-10">SECOND</span><a + id="dx1-8008"></a> (number +of seconds) <span +class="cmss-10">HOURXII</span><a + id="dx1-8009"></a> (number of hours after midnight/midday), <span +class="cmss-10">TOHOUR</span><a + id="dx1-8010"></a> (the next +hour) and <span +class="cmss-10">TOMINUTE</span><a + id="dx1-8011"></a> (number of minutes to the next hour), and the corresponding +commands: <span +class="cmtt-10">\THEHOUR</span><a + id="dx1-8012"></a>, <span +class="cmtt-10">\THEMINUTE</span><a + id="dx1-8013"></a>, <span +class="cmtt-10">\THESECOND</span><a + id="dx1-8014"></a>, <span +class="cmtt-10">\THEHOURXII</span><a + id="dx1-8015"></a>, <span +class="cmtt-10">\THETOHOUR</span><a + id="dx1-8016"></a> and +<span +class="cmtt-10">\THETOMINUTE</span><a + id="dx1-8017"></a>. +</p><!--l. 231--><p class="indent" > For example, to define a new time format that uses a dot instead of a colon: + + + +</p> + <div class="verbatim" id="verbatim-3"> \newtimeformat{dottime}{\twodigit{\THEHOUR}.\twodigit{\THEMINUTE}} -</PRE> -You then need to switch to this new format before you can use it: -<PRE> +</div> +<!--l. 235--><p class="nopar" > You then need to switch to this new format before you can use it: + + + +</p> + <div class="verbatim" id="verbatim-4"> \settimeformat{dottime} -\currenttime -</PRE> - -<P> -As from version 2.43, if you only want to change the separator, -you can simply redefine <TT>\timeseparator</TT> -instead of defining a new time format. For example: -<PRE> + <br />\currenttime +</div> +<!--l. 240--><p class="nopar" > +</p><!--l. 242--><p class="indent" > As from version 2.43, if you only want to change the separator, you can simply +redefine +</p><!--l. 244--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\timeseparator</span><span +class="cmtt-9"> </span></span><a + id="dx1-8018"></a> <span +class="cmtt-10">\timeseparator </span></div><hr> +</p><!--l. 246--><p class="noindent" > +instead of defining a new time format. For example: + + + +</p> + <div class="verbatim" id="verbatim-5"> \renewcommand{\timeseparator}{.} -</PRE> -The <TT>xxivtime</TT> format will now work like the <TT>dottime</TT> -format defined above. - -<P> - -<H1><A NAME="SECTION00050000000000000000"> -Formating Dates</A> -</H1> - - The command <code>\pdfdate</code><A NAME="tex2html3" - HREF="#foot154"><SUP>2</SUP></A> prints the date in the format required for - PDF files, e.g. if the date is 1 May 2004 and time is - 22:02, <code>\pdfdate</code> will print 20040501220200. The reason -this date format is separate from all the others is because the -other form doesn't get properly expanded by PDFTeX. (This -command is defined regardless of whether the package option -<TT>nodate</TT> is called.) -Example: -<PRE> +</div> +<!--l. 250--><p class="nopar" > The <span +class="cmtt-10">xxivtime </span>format will now work like the <span +class="cmtt-10">dottime </span>format defined above. +</p><!--l. 254--><p class="noindent" > +</p> +<!--l. 254--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">4 </span> <a + id="x1-90004"></a>Formating Dates</h3> +<!--l. 255--><p class="noindent" ><hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\pdfdate</span><span +class="cmtt-9"> </span></span><a + id="dx1-9001"></a> <span +class="cmtt-10">\pdfdate </span></div><hr> +</p><!--l. 257--><p class="noindent" > +This command<span class="footnote-mark"><a +href="#fn2x0" id="fn2x0-bk"><sup class="textsuperscript">2</sup></a></span><a + id="x1-9002f2"></a> +prints the date in the format required for PDF files, e.g. if the date is 1 May 2004 and +time is 22:02, <span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\pdfdate</span></span></span> will print 20040501220200. The reason this date format is +separate from all the others is because the other form doesn’t get properly expanded by +PDF<span class="TEX">T<span +class="E">E</span>X</span>. (This command is defined regardless of whether the package option <span +class="cmtt-10">nodate</span> +is called.) Example: + + + +</p> + <div class="verbatim" id="verbatim-6"> \pdfinfo{ - /Author (Me) - /Title (A Sample Document) - /CreationDate (D:20040501215500) - /ModDate (D:\pdfdate) -} -</PRE> -<B>Note</B> that PDFTeX introduced the new primitive -<TT>\pdfcreationdate</TT> in version 1.30.0, so <TT>\pdfdate</TT> isn't -required with newer versions of PDFTeX. (<TT>\pdfcreationdate</TT> -is better than <TT>\pdfdate</TT> as it also stores the time zone.) - -<P> -There are two commands that print the name of the current - month: - - <code>\monthname</code> prints the current month name in full, -e.g. August, and - - <code>\shortmonthname</code> prints the abbreviated month name, -e.g. Aug. Both <code>\monthname</code> and -<code>\shortmonthname</code> take an optional argument (a number from -1 to 12) if the name of a specific month is required. For -example, <code>\monthname[6]</code> will produced the output: June. - -<P> -The day of the week is computed using the algorithm documented at - <TT><A NAME="tex2html4" - HREF="http://userpages.wittenburg.edu/bshelburne/Comp150/DayOfWeek.htm">http://userpages.wittenburg.edu/bshelburne/Comp150/DayOfWeek.htm</A></TT>. - This algorithm works for any date between 1<SUP>st</SUP> -Jan, 1901 and 31<SUP>st</SUP> Dec, 2099. - The following macros display the day of week for a given date: - -<P> - -<TT>\dayofweekname{</TT><EM>day</EM><TT>}{</TT><EM>month</EM><TT>}{</TT><EM>year</EM><TT>}</TT> prints the - day of week for the specified date. For example, -<code>\dayofweekname{31}{10}{2002}</code> - will produce the output: Thursday. -<BR> -<TT>\shortdayofweekname</TT><I>day</I><TT>{</TT><EM>month</EM><TT>}{</TT><EM>year</EM><TT>}</TT> prints the -abbreviated name for the - day of week for the specified date. For example -<BR> <code>\shortdayofweekname{31}{10}{2002}</code> -<BR> -will produce the output: Thu. - -<P> -The TeX conditional <code>\ifshowdow</code> can be used to determine - whether or not the option <TT>dayofweek</TT> has been passed to -the package. - For example: -<PRE> -\ifshowdow\dayofweekname{31}{10}{2002} \fi -</PRE> - will only display the day of week if the <TT>dayofweek</TT> -option was passed to <TT>datetime</TT>. - Alternatively, you can use David Carlisle's <TT>ifthen</TT> -package: -<PRE> -\ifthenelse{\boolean{showdow}}{\dayofweekname{31}{10}{2002} }{} -</PRE> - -<P> -The command <TT>\ordinaldate{</TT><EM>number</EM><TT>}</TT> -displays <I>number</I> as a date-type ordinal. If the -current language is English, this will simply pass -the argument to <TT>\ordinalnum</TT> (defined in the -<TT>fmtcount</TT> package), -if the current language is Breton, Welsh or French, a superscript -will only be added if <I>number</I> is 1, otherwise only -<I>number</I> will be displayed. - -<P> -The macro -<TT>\formatdate{</TT><EM>day</EM><TT>}{</TT><EM>month</EM><TT>}{</TT><EM>year</EM><TT>}</TT><A NAME="tex2html5" - HREF="#foot461"><SUP>3</SUP></A> formats the specified date according to -the current format of <TT>\today</TT><A NAME="tex2html6" - HREF="#foot465"><SUP>4</SUP></A>. -(Arguments must all be integers.) For example, in combination with -<code>\longdate</code>, the command -<PRE> + <br />   /Author (Me) + <br />   /Title (A Sample Document) + <br />   /CreationDate (D:20040501215500) + <br />   /ModDate (D:\pdfdate) + <br />} +</div> +<!--l. 274--><p class="nopar" > <span +class="cmbx-10">Note </span>that PDF<span class="TEX">T<span +class="E">E</span>X</span> introduced the new primitive <span +class="cmtt-10">\pdfcreationdate </span>in +version 1.30.0, so <span +class="cmtt-10">\pdfdate </span>isn’t required with newer versions of PDF<span class="TEX">T<span +class="E">E</span>X</span>. +(<span +class="cmtt-10">\pdfcreationdate </span>is better than <span +class="cmtt-10">\pdfdate </span>as it also stores the time zone.) +</p><!--l. 280--><p class="indent" > There are two commands that print the name of the current month: +</p><!--l. 282--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\monthname</span><span +class="cmtt-9"> </span></span><a + id="dx1-9003"></a> <span +class="cmtt-10">\monthname[</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">num</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">] </span></div><hr> +</p><!--l. 284--><p class="noindent" > +prints the current month name in full, e.g. August, and +</p><!--l. 287--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\shortmonthname</span><span +class="cmtt-9"> </span></span><a + id="dx1-9004"></a> <span +class="cmtt-10">\shortmonthname[</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">num</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">] </span></div><hr> +</p><!--l. 289--><p class="noindent" > +prints the abbreviated month name, e.g. Aug. Both <span +class="cmtt-10">\monthname </span>and <span +class="cmtt-10">\shortmonthname</span> +take an optional argument (a number from 1 to 12) if the name of a specific +month is required. For example, <span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\monthname[6]</span></span></span> will produced the output: +June. +</p><!--l. 295--><p class="indent" > The day of the week is computed using the algorithm documented at +<a +href="http://userpages.wittenburg.edu/bshelburne/Comp150/DayOfWeek.htm" class="url" ><span +class="cmtt-10">http://userpages.wittenburg.edu/bshelburne/Comp150/DayOfWeek.htm</span></a>. This +algorithm works for any date between 1<sup class="textsuperscript"><span +class="cmr-9">st</span></sup> Jan, 1901 and 31<sup class="textsuperscript"><span +class="cmr-9">st</span></sup> Dec, 2099. The following +macros display the day of week for a given date: +</p><!--l. 301--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\dayofweekname</span><span +class="cmtt-9"> </span></span><a + id="dx1-9005"></a> <span +class="cmtt-10">\dayofweekname{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">day</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">month</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">year</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 303--><p class="noindent" > +prints the day of week for the specified date. For example, + + + +</p> + <div class="verbatim" id="verbatim-7"> +\dayofweekname{31}{10}{2002} +</div> +<!--l. 307--><p class="nopar" > will produce the output: Thursday. +</p><!--l. 310--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\shortdayofweekname</span><span +class="cmtt-9"> </span></span><a + id="dx1-9006"></a> <span +class="cmtt-10">\shortdayofweekname</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">day</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">month</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">year</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 312--><p class="noindent" > +prints the abbreviated name for the day of week for the specified date. For +example + + + +</p> + <div class="verbatim" id="verbatim-8"> +\shortdayofweekname{31}{10}{2002} +</div> +<!--l. 317--><p class="nopar" > will produce the output: Thu. +</p><!--l. 320--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\ifshowdow</span><span +class="cmtt-9"> </span></span><a + id="dx1-9007"></a> <span +class="cmtt-10">\ifshowdow </span></div><hr> +</p><!--l. 322--><p class="noindent" > +This <span class="TEX">T<span +class="E">E</span>X</span> conditional can be used to determine whether or not the option <span +class="cmss-10">dayofweek</span><a + id="dx1-9008"></a> +has been passed to the package. For example: + + + +</p> + <div class="verbatim" id="verbatim-9"> +\ifshowdow\dayofweekname{31}{10}{2002} \fi +</div> +<!--l. 328--><p class="nopar" > will only display the day of week if the <span +class="cmss-10">dayofweek</span><a + id="dx1-9009"></a> option was passed to <span +class="cmss-10">datetime</span>. +Alternatively, you can use David Carlisle’s <span +class="cmss-10">ifthen</span><a + id="dx1-9010"></a> package: + + + +</p> + <div class="verbatim" id="verbatim-10"> +\ifthenelse{\boolean{showdow}}{\dayofweekname{31}{10}{2002} }{} +</div> +<!--l. 334--><p class="nopar" > +</p><!--l. 336--><p class="indent" > The command +</p><!--l. 337--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\ordinaldate</span><span +class="cmtt-9"> </span></span><a + id="dx1-9011"></a> <span +class="cmtt-10">\ordinaldate{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">number</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 339--><p class="noindent" > +displays <span +class="cmsy-10">⟨</span><span +class="cmti-10">number</span><span +class="cmsy-10">⟩ </span>as a date-type ordinal. If the current language is English, this will +simply pass the argument to <span +class="cmtt-10">\ordinalnum</span><a + id="dx1-9012"></a> (defined in the <span +class="cmss-10">fmtcount</span><a + id="dx1-9013"></a> package), if the +current language is Breton, Welsh or French, a superscript will only be added if +<span +class="cmsy-10">⟨</span><span +class="cmti-10">number</span><span +class="cmsy-10">⟩ </span>is 1, otherwise only <span +class="cmsy-10">⟨</span><span +class="cmti-10">number</span><span +class="cmsy-10">⟩ </span>will be displayed. +</p><!--l. 347--><p class="indent" > The macro<span class="footnote-mark"><a +href="#fn3x0" id="fn3x0-bk"><sup class="textsuperscript">3</sup></a></span><a + id="x1-9014f3"></a> +</p><!--l. 350--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\formatdate</span><span +class="cmtt-9"> </span></span><a + id="dx1-9016"></a> <span +class="cmtt-10">\formatdate{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">day</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">month</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">year</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 352--><p class="noindent" > +formats the specified date according to the current format of +<span +class="cmtt-10">\today</span><a + id="dx1-9017"></a><span class="footnote-mark"><a +href="#fn4x0" id="fn4x0-bk"><sup class="textsuperscript">4</sup></a></span><a + id="x1-9018f4"></a>. +(Arguments must all be integers.) For example, in combination with <span +class="cmtt-10">\longdate</span><a + id="dx1-9022"></a>, the +command + + + +</p> + <div class="verbatim" id="verbatim-11"> \formatdate{27}{9}{2004} -</PRE> -will produce the output: Monday 27<SUP>th</SUP> September, -2004. - -<P> -You can ensure that a number is displayed with at least two -digits by using the command -<TT>\twodigit{</TT><EM>num</EM><TT>}</TT>. - This is of use if you want to define your own date or time -formats. - -<P> - -<H1><A NAME="SECTION00060000000000000000"></A><A NAME="sec:newdate"></A> -<BR> -Defining New Date Formats -</H1> - -<P> -New date formats can be defined using the command: -<BR> -<BR> <TT>\newdateformat{</TT><EM>name</EM><TT>}{</TT><EM>format</EM><TT>}</TT> -<BR> -<BR> -where <I>name</I> is the name of the new format, and - <I>format</I> is how to format the date. Within the - argument <I>format</I> you can use the commands <TT>\THEDAY</TT>, -<TT>\THEMONTH</TT> - and <TT>\THEYEAR</TT> to represent the relevant day, month and -year, or you can use the counters - <TT>DAY</TT>, <TT>MONTH</TT> and <TT>YEAR</TT> if you want to -use <TT>\ordinal</TT> etc. Once you have defined the - new date format, you can then switch to it using the declaration -<code>\</code><I>name</I> - (i.e. the name you specified preceded by a backslash), and - subsequent calls to <TT>\today</TT> and <TT>\formatdate</TT> will -use your new format. - -<P> -For example, suppose you want to define a new date format called, - say, <TT>mydate</TT>, that will typeset the date in the form: -8-3-2002, - then you can do: -<PRE> +</div> +<!--l. 361--><p class="nopar" > will produce the output: Monday 27<sup class="textsuperscript"><span +class="cmr-9">th</span></sup> September, 2004. +</p><!--l. 365--><p class="indent" > You can ensure that a number is displayed with at least two digits using the +command +</p><!--l. 367--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\twodigit</span><span +class="cmtt-9"> </span></span><a + id="dx1-9023"></a> <span +class="cmtt-10">\twodigit{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">num</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 369--><p class="noindent" > +</p><!--l. 371--><p class="noindent" > +</p> +<!--l. 371--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">5 </span> <a + id="x1-100005"></a>Defining New Date Formats</h3> +<!--l. 373--><p class="noindent" >New date formats can be defined using the command: +</p><!--l. 374--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\newdateformat</span><span +class="cmtt-9"> </span></span><a + id="dx1-10001"></a> <span +class="cmtt-10">\newdateformat{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">name</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">format</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 376--><p class="noindent" > +where <span +class="cmsy-10">⟨</span><span +class="cmti-10">name</span><span +class="cmsy-10">⟩ </span>is the name of the new format, and <span +class="cmsy-10">⟨</span><span +class="cmti-10">format</span><span +class="cmsy-10">⟩ </span>is how to format the date. +Within the argument <span +class="cmsy-10">⟨</span><span +class="cmti-10">format</span><span +class="cmsy-10">⟩ </span>you can use the commands <span +class="cmtt-10">\THEDAY</span><a + id="dx1-10002"></a>, <span +class="cmtt-10">\THEMONTH</span><a + id="dx1-10003"></a> and +<span +class="cmtt-10">\THEYEAR</span><a + id="dx1-10004"></a> to represent the relevant day, month and year, or you can use the counters +<span +class="cmss-10">DAY</span><a + id="dx1-10005"></a>, <span +class="cmss-10">MONTH</span><a + id="dx1-10006"></a> and <span +class="cmss-10">YEAR</span><a + id="dx1-10007"></a> if you want to use <span +class="cmtt-10">\ordinal</span><a + id="dx1-10008"></a> etc. Once you have defined the +new date format, you can then switch to it using the declaration <span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\</span></span></span><span +class="cmsy-10">⟨</span><span +class="cmti-10">name</span><span +class="cmsy-10">⟩ </span>(i.e. the +name you specified preceded by a backslash), and subsequent calls to <span +class="cmtt-10">\today</span><a + id="dx1-10009"></a> and +<span +class="cmtt-10">\formatdate</span><a + id="dx1-10010"></a> will use your new format. +</p><!--l. 388--><p class="indent" > For example, suppose you want to define a new date format called, say, <span +class="cmtt-10">mydate</span>, that +will typeset the date in the form: 8-3-2002, then you can do: + + + +</p> + <div class="verbatim" id="verbatim-12"> \newdateformat{mydate}{\THEDAY-\THEMONTH-\THEYEAR} -</PRE> -<TT>\newdateformat</TT> will then define the declaration -<TT>\mydate</TT> which can be used to - switch to your new format. In the following example, - two new date formats are defined, and they are then - selected to produce two different formats for the current date: -<PRE> +</div> +<!--l. 393--><p class="nopar" > <span +class="cmtt-10">\newdateformat</span><a + id="dx1-10011"></a> will then define the declaration <span +class="cmtt-10">\mydate </span>which can be used to switch +to your new format. In the following example, two new date formats are defined, +and they are then selected to produce two different formats for the current +date: + + + +</p> + <div class="verbatim" id="verbatim-13"> \newdateformat{dashdate}{% -\twodigit{\THEDAY}-\twodigit{\THEMONTH}-\THEYEAR} - -\newdateformat{usvardate}{% -\monthname[\THEMONTH] \ordinal{DAY}, \THEYEAR} - -Dash: \dashdate\today. -US: \usvardate\today. -</PRE> -If the current date is, say, 8th March, 2002, the above code will - produce the following: -Dash: 08-03-2002. -US: March 8<SUP>th</SUP>, 2002. - -<P> -Note that <TT>\THEDAY</TT> etc and <TT>DAY</TT> etc have no real -meaning outside <TT>\newdateformat</TT> (this is why they -are in uppercase). Incidentally, the <TT>dashdate</TT> format -is not really necessary, as you can achieve this format -using: -<PRE> + <br />\twodigit{\THEDAY}-\twodigit{\THEMONTH}-\THEYEAR} + <br />\newdateformat{usvardate}{% + <br />\monthname[\THEMONTH] \ordinal{DAY}, \THEYEAR} + <br />Dash: \dashdate\today. + <br />US: \usvardate\today. +</div> +<!--l. 408--><p class="nopar" > If the current date is, say, 8th March, 2002, the above code will produce the following: +Dash: 08-03-2002. US: March 8<sup class="textsuperscript"><span +class="cmr-9">th</span></sup>, 2002. +</p><!--l. 413--><p class="indent" > Note that <span +class="cmtt-10">\THEDAY</span><a + id="dx1-10012"></a> etc and <span +class="cmss-10">DAY</span><a + id="dx1-10013"></a> etc have no real meaning outside <span +class="cmtt-10">\newdateformat</span><a + id="dx1-10014"></a> +(this is why they are in uppercase). Incidentally, the <span +class="cmtt-10">dashdate </span>format is not really +necessary, as you can achieve this format using: + + + +</p> + <div class="verbatim" id="verbatim-14"> \renewcommand{\dateseparator}{-} -\ddmmyyyydate -</PRE> - -<P> -Another note: in the above code, <TT>\ordinal</TT> was -used to illustrate the use of the <TT>DAY</TT> counter. It -is better to use <TT>\ordinaldate</TT> instead: -<PRE> + <br />\ddmmyyyydate +</div> +<!--l. 421--><p class="nopar" > +</p><!--l. 423--><p class="indent" > Another note: in the above code, <span +class="cmtt-10">\ordinal</span><a + id="dx1-10015"></a> was used to illustrate the use of the <span +class="cmss-10">DAY</span><a + id="dx1-10016"></a> +counter. It is better to use <span +class="cmtt-10">\ordinaldate</span><a + id="dx1-10017"></a> instead: + + + +</p> + <div class="verbatim" id="verbatim-15"> \newdateformat{usvardate}{% -\monthname[\THEMONTH] \ordinaldate{\THEDAY}, \THEYEAR} -</PRE> - -<P> - -<H1><A NAME="SECTION00070000000000000000"> -Saving Dates</A> -</H1> - -<P> -It is possible to save a date for later use using the command: -<A NAME="tex2html7" - HREF="#foot255"><SUP>5</SUP></A> -<P> - -<TT>\newdate{</TT><EM>name</EM><TT>}{</TT><EM>day</EM><TT>}{</TT><EM>month</EM><TT>}{</TT><EM>year</EM><TT>}</TT> - -<P> -This date can later be displayed using the same format as that -used by <TT>\formatdate</TT> using the command: -<P> - -<TT>\displaydate{</TT><EM>name</EM><TT>}</TT> - -<P> -Individual elements of the date can be extracted using the -commands: -<P> - -<TT>\getdateday{</TT><EM>name</EM><TT>}</TT> -<P> - -<TT>\getdatemonth{</TT><EM>name</EM><TT>}</TT> -<P> - -<TT>\getdateyear{</TT><EM>name</EM><TT>}</TT> - -<P> - -<H1><A NAME="SECTION00080000000000000000"> -Predefined Names</A> -</H1> - -<P> -The following commands are defined by the <TT>datetime</TT> -package: - -<P> -<TABLE CELLPADDING=3> -<TR><TH ALIGN="LEFT"><B>Command Name </B></TH> -<TH ALIGN="LEFT"><B>Default Value</B></TH> -</TR> -<TR><TD ALIGN="LEFT"><TT>\dateseparator</TT></TD> -<TD ALIGN="LEFT"><code>/</code></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\timeseparator</TT></TD> -<TD ALIGN="LEFT"><code>:</code></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\amname</TT></TD> -<TD ALIGN="LEFT"><TT>am</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\pmname</TT></TD> -<TD ALIGN="LEFT"><TT>pm</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\amorpmname</TT></TD> -<TD ALIGN="LEFT"><TT>\amname</TT> if morning, otherwise <TT>\pmname</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\amstring</TT></TD> -<TD ALIGN="LEFT"><TT>in the morning</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\pmstring</TT></TD> -<TD ALIGN="LEFT"><TT>in the afternoon</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\amorpmstring</TT></TD> -<TD ALIGN="LEFT"><TT>\amstring</TT> if morning, otherwise -<TT>\pmstring</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\halfpast</TT></TD> -<TD ALIGN="LEFT"><TT>Half past</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\quarterpast</TT></TD> -<TD ALIGN="LEFT"><TT>Quarter past</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\quarterto</TT></TD> -<TD ALIGN="LEFT"><TT>Quarter to</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\noon</TT></TD> -<TD ALIGN="LEFT"><TT>Noon</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\midnight</TT></TD> -<TD ALIGN="LEFT"><TT>Midnight</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT>\oclockstring</TT></TD> -<TD ALIGN="LEFT"><TT>O'Clock</TT></TD> -</TR> -</TABLE> - -<P> - -<H1><A NAME="SECTION00090000000000000000"> -Package Options</A> -</H1> - -<P> -The following options may be passed to this package: -<BR> -<BR> <TABLE CELLPADDING=3> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">long </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce long date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">short </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce short date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">yyyymmdd </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce YYYY/MM/DD date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">ddmmyyyy </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce DD/MM/YYYY date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">dmyyyy </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce D/M/YYYY date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">ddmmyy </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce DD/MM/YY date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">dmyy </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce D/M/YY date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">text </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce text date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">us </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce US style date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">mmddyyyy </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce MM/DD/YYYY date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">mdyyyy </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce M/D/YYYY date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">mmddyy </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce MM/DD/YY date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">mdyy </TT></TD> -<TD ALIGN="LEFT">make <TT>\today</TT> produce M/D/YY date</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">raise </TT></TD> -<TD ALIGN="LEFT">make ordinal st,nd,rd,th appear as superscript</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">level </TT></TD> -<TD ALIGN="LEFT">make ordinal st,nd,rd,th appear level with rest of -text</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">dayofweek </TT></TD> -<TD ALIGN="LEFT">make the day of week appear for <TT>\longdate</TT>, -<TT>\shortdate</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT"></TT></TD> -<TD ALIGN="LEFT">or <TT>\textdate</TT></TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">nodayofweek </TT></TD> -<TD ALIGN="LEFT">don't display the day of week.</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">hhmmss </TT></TD> -<TD ALIGN="LEFT">make <TT>\currenttime</TT> produce <TT>hhmmsstime</TT> -format</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">24hr </TT></TD> -<TD ALIGN="LEFT">make <TT>\currenttime</TT> produce <TT>xxivtime</TT> -format</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">12hr </TT></TD> -<TD ALIGN="LEFT">make <TT>\currenttime</TT> produce <TT>ampmtime</TT> -format</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">oclock </TT></TD> -<TD ALIGN="LEFT">make <TT>\currenttime</TT> produce <TT>oclock</TT> -format</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">nodate </TT></TD> -<TD ALIGN="LEFT">Don't redefine <TT>\today</TT> or define the month or -day of week commands</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT"></TT></TD> -<TD ALIGN="LEFT">(useful if you only want the time commands)</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT">iso </TT></TD> -<TD ALIGN="LEFT">as ddmmyyyy and hhmmss but also sets date separator to -</TD> -</TR> -<TR><TD ALIGN="LEFT"><TT></TD><TD ALIGN="LEFT"></TT></TD> -<TD ALIGN="LEFT">and time separator to :</TD> -</TR> -</TABLE> - -<P> -The default options are: <TT>long</TT>, <TT>raise</TT>, -<TT>dayofweek</TT> and <TT>24hr</TT>. - -<P> - -<H1><A NAME="SECTION000100000000000000000"> -Multilingual Support</A> -</H1> - -<P> -If you use the <TT>ngerman</TT> package, you must use <TT>datetime</TT>'s -<TT>ngerman</TT> package option if you want the date displayed -in the same form as <TT>ngerman</TT>. You must also load <TT>ngerman</TT> -<I>before</I> you load <TT>datetime</TT>. Similarly for the -<TT>german</TT> package. - -<P> -If you want to use the <TT>babel</TT> package, you must load -it <I>before</I> you load the <TT>datetime</TT> package. This -is because the <TT>babel</TT> <TT>\date</TT><I>lang</I> commands -redefine <TT>\today</TT>, whereas the <TT>datetime</TT> package -redefines <TT>\today</TT> to use <TT>\formatdate</TT>, and the -date formatting commands (such as <TT>\longdate</TT>) redefine -<TT>\formatdate</TT> rather than <TT>\today</TT>. This ensures -consistent formatting of the dates whether you use <TT>\today</TT> or -<TT>\formatdate</TT>. Therefore, the <TT>datetime</TT> package -has to redefine all the <TT>\date</TT><I>lang</I> commands accordingly. -Thus the multilingual date support is mostly limited to that provided -by <TT>babel</TT>. Additional support, such as the day of -week names and abbreviations, are only supplied for those -languages that I know, or that other people have been able to supply -for me. - -<P> -As from v2.56, the package options supplied to <TT>datetime</TT> -override <TT>babel</TT>'s date format. For example: -<PRE> + <br />\monthname[\THEMONTH] \ordinaldate{\THEDAY}, \THEYEAR} +</div> +<!--l. 429--><p class="nopar" > +</p><!--l. 431--><p class="noindent" > +</p> +<!--l. 431--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">6 </span> <a + id="x1-110006"></a>Saving Dates</h3> +<!--l. 433--><p class="noindent" >It is possible to save a date for later use using the command: +<span class="footnote-mark"><a +href="#fn5x0" id="fn5x0-bk"><sup class="textsuperscript">5</sup></a></span><a + id="x1-11001f5"></a> +</p><!--l. 435--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\newdate</span><span +class="cmtt-9"> </span></span><a + id="dx1-11002"></a> <span +class="cmtt-10">\newdate{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">name</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">day</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">month</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">}{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">year</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 437--><p class="noindent" > +</p><!--l. 439--><p class="indent" > This date can later be displayed using the same format as that used by +<span +class="cmtt-10">\formatdate</span><a + id="dx1-11003"></a> using the command: +</p><!--l. 441--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\displaydate</span><span +class="cmtt-9"> </span></span><a + id="dx1-11004"></a> <span +class="cmtt-10">\displaydate{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">name</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 443--><p class="noindent" > +</p><!--l. 445--><p class="indent" > Individual elements of the date can be extracted using the commands: +</p><!--l. 447--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\getdateday</span><span +class="cmtt-9"> </span></span><a + id="dx1-11005"></a> <span +class="cmtt-10">\getdateday{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">name</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 449--><p class="noindent" > +</p><!--l. 450--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\getdatemonth</span><span +class="cmtt-9"> </span></span><a + id="dx1-11006"></a> <span +class="cmtt-10">\getdatemonth{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">name</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 452--><p class="noindent" > +</p><!--l. 453--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\getdateyear</span><span +class="cmtt-9"> </span></span><a + id="dx1-11007"></a> <span +class="cmtt-10">\getdateyear{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">name</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 455--><p class="noindent" > +</p><!--l. 457--><p class="noindent" > +</p> +<!--l. 457--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">7 </span> <a + id="x1-120007"></a>Predefined Names</h3> +<!--l. 459--><p class="noindent" >The following commands are defined by the <span +class="cmss-10">datetime </span>package: +</p> + + + + <div class="tabular"> <table id="TBL-2" class="tabular" +cellspacing="0" cellpadding="0" +><colgroup id="TBL-2-1g"><col +id="TBL-2-1" /><col +id="TBL-2-2" /></colgroup><tr + style="vertical-align:baseline;" id="TBL-2-1-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-1-1" +class="td11"><span +class="cmbx-10">Command Name</span></td><td style="white-space:nowrap; text-align:left;" id="TBL-2-1-2" +class="td11"><span +class="cmbx-10">Default Value </span></td></tr><tr + style="vertical-align:baseline;" id="TBL-2-2-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-2-1" +class="td11"><span +class="cmtt-10">\dateseparator</span><a + id="dx1-12001"></a> </td> <td style="white-space:nowrap; text-align:left;" id="TBL-2-2-2" +class="td11"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">/</span></span></span></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-3-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-3-1" +class="td11"><span +class="cmtt-10">\timeseparator</span><a + id="dx1-12002"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-3-2" +class="td11"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">:</span></span></span> </td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-4-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-4-1" +class="td11"><span +class="cmtt-10">\amname</span><a + id="dx1-12003"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-4-2" +class="td11"><span +class="cmtt-10">am </span></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-5-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-5-1" +class="td11"><span +class="cmtt-10">\pmname</span><a + id="dx1-12004"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-5-2" +class="td11"><span +class="cmtt-10">pm </span></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-6-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-6-1" +class="td11"><span +class="cmtt-10">\amorpmname</span><a + id="dx1-12005"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-6-2" +class="td11"><span +class="cmtt-10">\amname</span><a + id="dx1-12006"></a> if morning, otherwise <span +class="cmtt-10">\pmname</span><a + id="dx1-12007"></a> </td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-7-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-7-1" +class="td11"><span +class="cmtt-10">\amstring</span><a + id="dx1-12008"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-7-2" +class="td11"><span +class="cmtt-10">in the morning </span></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-8-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-8-1" +class="td11"><span +class="cmtt-10">\pmstring</span><a + id="dx1-12009"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-8-2" +class="td11"><span +class="cmtt-10">in the afternoon </span></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-9-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-9-1" +class="td11"><span +class="cmtt-10">\amorpmstring</span><a + id="dx1-12010"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-9-2" +class="td11"><span +class="cmtt-10">\amstring</span><a + id="dx1-12011"></a> if morning, otherwise <span +class="cmtt-10">\pmstring</span><a + id="dx1-12012"></a></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-10-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-10-1" +class="td11"><span +class="cmtt-10">\halfpast</span><a + id="dx1-12013"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-10-2" +class="td11"><span +class="cmtt-10">Half past </span></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-11-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-11-1" +class="td11"><span +class="cmtt-10">\quarterpast</span><a + id="dx1-12014"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-11-2" +class="td11"><span +class="cmtt-10">Quarter past </span></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-12-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-12-1" +class="td11"><span +class="cmtt-10">\quarterto</span><a + id="dx1-12015"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-12-2" +class="td11"><span +class="cmtt-10">Quarter to </span></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-13-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-13-1" +class="td11"><span +class="cmtt-10">\noon</span><a + id="dx1-12016"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-13-2" +class="td11"><span +class="cmtt-10">Noon </span></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-14-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-14-1" +class="td11"><span +class="cmtt-10">\midnight</span><a + id="dx1-12017"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-14-2" +class="td11"><span +class="cmtt-10">Midnight </span></td> +</tr><tr + style="vertical-align:baseline;" id="TBL-2-15-"><td style="white-space:nowrap; text-align:left;" id="TBL-2-15-1" +class="td11"><span +class="cmtt-10">\oclockstring</span><a + id="dx1-12018"></a> </td><td style="white-space:nowrap; text-align:left;" id="TBL-2-15-2" +class="td11"><span +class="cmtt-10">O’Clock </span></td> </tr></table> +</div> +<!--l. 481--><p class="noindent" > +</p> +<!--l. 481--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">8 </span> <a + id="x1-130008"></a>Package Options</h3> +<!--l. 483--><p class="noindent" >The following options may be passed to this package: + </p><dl class="description"><dt class="description"> +<span +class="cmssbx-10">long</span><a + id="dx1-13001"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce long date + </dd><dt class="description"> +<span +class="cmssbx-10">short</span><a + id="dx1-13002"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce short date + </dd><dt class="description"> +<span +class="cmssbx-10">yyyymmdd</span><a + id="dx1-13003"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce YYYY/MM/DD date + </dd><dt class="description"> +<span +class="cmssbx-10">ddmmyyyy</span><a + id="dx1-13004"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce DD/MM/YYYY date + </dd><dt class="description"> +<span +class="cmssbx-10">dmyyyy</span><a + id="dx1-13005"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce D/M/YYYY date + </dd><dt class="description"> +<span +class="cmssbx-10">ddmmyy</span><a + id="dx1-13006"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce DD/MM/YY date + </dd><dt class="description"> +<span +class="cmssbx-10">dmyy</span><a + id="dx1-13007"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce D/M/YY date + </dd><dt class="description"> +<span +class="cmssbx-10">text</span><a + id="dx1-13008"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce text date + </dd><dt class="description"> +<span +class="cmssbx-10">us</span><a + id="dx1-13009"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce US style date + </dd><dt class="description"> +<span +class="cmssbx-10">mmddyyyy</span><a + id="dx1-13010"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce MM/DD/YYYY date + + + + </dd><dt class="description"> +<span +class="cmssbx-10">mdyyyy</span><a + id="dx1-13011"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce M/D/YYYY date + </dd><dt class="description"> +<span +class="cmssbx-10">mmddyy</span><a + id="dx1-13012"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce MM/DD/YY date + </dd><dt class="description"> +<span +class="cmssbx-10">mdyy</span><a + id="dx1-13013"></a> </dt><dd +class="description">make <span +class="cmtt-10">\today </span>produce M/D/YY date + </dd><dt class="description"> +<span +class="cmssbx-10">raise</span><a + id="dx1-13014"></a> </dt><dd +class="description">make ordinal st,nd,rd,th appear as superscript + </dd><dt class="description"> +<span +class="cmssbx-10">level</span><a + id="dx1-13015"></a> </dt><dd +class="description">make ordinal st,nd,rd,th appear level with rest of text + </dd><dt class="description"> +<span +class="cmssbx-10">dayofweek</span><a + id="dx1-13016"></a> </dt><dd +class="description">make the day of week appear for <span +class="cmtt-10">\longdate</span><a + id="dx1-13017"></a>, <span +class="cmtt-10">\shortdate</span><a + id="dx1-13018"></a> or + <span +class="cmtt-10">\textdate</span><a + id="dx1-13019"></a> + </dd><dt class="description"> +<span +class="cmssbx-10">nodayofweek</span><a + id="dx1-13020"></a> </dt><dd +class="description">don’t display the day of week. + </dd><dt class="description"> +<span +class="cmssbx-10">hhmmss</span><a + id="dx1-13021"></a> </dt><dd +class="description">make <span +class="cmtt-10">\currenttime </span>produce <span +class="cmtt-10">hhmmsstime </span>format + </dd><dt class="description"> +<span +class="cmssbx-10">24hr</span><a + id="dx1-13022"></a> </dt><dd +class="description">make <span +class="cmtt-10">\currenttime </span>produce <span +class="cmtt-10">xxivtime </span>format + </dd><dt class="description"> +<span +class="cmssbx-10">12hr</span><a + id="dx1-13023"></a> </dt><dd +class="description">make <span +class="cmtt-10">\currenttime </span>produce <span +class="cmtt-10">ampmtime </span>format + </dd><dt class="description"> +<span +class="cmssbx-10">oclock</span><a + id="dx1-13024"></a> </dt><dd +class="description">make <span +class="cmtt-10">\currenttime </span>produce <span +class="cmtt-10">oclock </span>format + </dd><dt class="description"> +<span +class="cmssbx-10">nodate</span><a + id="dx1-13025"></a> </dt><dd +class="description">Don’t redefine <span +class="cmtt-10">\today </span>or define the month or day of week commands + (useful if you only want the time commands) + </dd><dt class="description"> +<span +class="cmssbx-10">iso</span><a + id="dx1-13026"></a> </dt><dd +class="description">as <span +class="cmss-10">ddmmyyyy</span><a + id="dx1-13027"></a> and <span +class="cmss-10">hhmmss</span><a + id="dx1-13028"></a> but also sets date separator to <span +class="cmtt-10">- </span>and time separator + to <span +class="cmtt-10">:</span></dd></dl> +<!--l. 521--><p class="indent" > The default options are: <span +class="cmss-10">long</span><a + id="dx1-13029"></a>, <span +class="cmss-10">raise</span><a + id="dx1-13030"></a>, <span +class="cmss-10">dayofweek</span><a + id="dx1-13031"></a> and <span +class="cmss-10">24hr</span><a + id="dx1-13032"></a>. +</p><!--l. 524--><p class="noindent" > +</p> +<!--l. 524--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">9 </span> <a + id="x1-140009"></a>Multilingual Support</h3> + + + +<!--l. 526--><p class="noindent" >If you use the <span +class="cmss-10">ngerman</span><a + id="dx1-14001"></a> package, you must use <span +class="cmss-10">datetime</span>’s <span +class="cmss-10">ngerman</span><a + id="dx1-14002"></a> package option if you +want the date displayed in the same form as <span +class="cmss-10">ngerman</span><a + id="dx1-14003"></a>. You must also load <span +class="cmss-10">ngerman</span><a + id="dx1-14004"></a> +<span +class="cmti-10">before </span>you load <span +class="cmss-10">datetime</span>. Similarly for the <span +class="cmss-10">german</span><a + id="dx1-14005"></a> package. +</p><!--l. 532--><p class="indent" > If you want to use the <span +class="cmss-10">babel</span><a + id="dx1-14006"></a> package, you must load it <span +class="cmti-10">before </span>you load the <span +class="cmss-10">datetime</span> +package. This is because the <span +class="cmss-10">babel</span><a + id="dx1-14007"></a> <span +class="cmtt-10">\date</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">lang</span><span +class="cmsy-10">⟩ </span>commands redefine <span +class="cmtt-10">\today</span><a + id="dx1-14008"></a>, whereas the +<span +class="cmss-10">datetime</span><a + id="dx1-14009"></a> package redefines <span +class="cmtt-10">\today </span>to use <span +class="cmtt-10">\formatdate</span><a + id="dx1-14010"></a>, and the date formatting +commands (such as <span +class="cmtt-10">\longdate</span><a + id="dx1-14011"></a>) redefine <span +class="cmtt-10">\formatdate </span>rather than <span +class="cmtt-10">\today</span>. This ensures +consistent formatting of the dates whether you use <span +class="cmtt-10">\today </span>or <span +class="cmtt-10">\formatdate</span>. Therefore, +the <span +class="cmss-10">datetime </span>package has to redefine all the <span +class="cmtt-10">\date</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">lang</span><span +class="cmsy-10">⟩ </span>commands accordingly. Thus +the multilingual date support is mostly limited to that provided by <span +class="cmss-10">babel</span><a + id="dx1-14012"></a>. Additional +support, such as the day of week names and abbreviations, are only supplied for +those languages that I know, or that other people have been able to supply for +me. +</p><!--l. 548--><p class="indent" > As from v2.56, the package options supplied to <span +class="cmss-10">datetime </span>override <span +class="cmss-10">babel</span><a + id="dx1-14013"></a>’s date +format. For example: + + + +</p> + <div class="verbatim" id="verbatim-16"> \usepackage[french,spanish]{babel} -\usepackage[ddmmyyyy]{datetime} -</PRE> -will use ddmmyyyy date format regardless of language. Note that -if you use a declaration instead of a package option, for -example: -<PRE> + <br />\usepackage[ddmmyyyy]{datetime} +</div> +<!--l. 553--><p class="nopar" > will use ddmmyyyy date format regardless of language. Note that if you use a +declaration instead of a package option, for example: + + + +</p> + <div class="verbatim" id="verbatim-17"> \usepackage[french,spanish]{babel} -\usepackage{datetime} -\ddmmyyyydate -</PRE> -the date format will be switched back to <TT>\datefrench</TT> or -<TT>\datespanish</TT> whenever the language is set. You can use -<P> -<TT>\setdefaultdate{</TT><EM>declaration</EM><TT>}</TT> -<P> -to always use <TT>{</TT><EM>declaration</EM><TT>}</TT> whenever the language -is set. For example: -<PRE> + <br />\usepackage{datetime} + <br />\ddmmyyyydate +</div> +<!--l. 561--><p class="nopar" > the date format will be switched back to <span +class="cmtt-10">\datefrench </span>or <span +class="cmtt-10">\datespanish </span>whenever the +language is set. You can use +</p><!--l. 564--><p class="indent" > <hr><div title="Definition"><span class="marginpar"><span +class="cmtt-9">\setdefaultdate</span><span +class="cmtt-9"> </span></span><a + id="dx1-14014"></a> <span +class="cmtt-10">\setdefaultdate{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">declaration</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span></div><hr> +</p><!--l. 566--><p class="noindent" > +to always use <span +class="cmtt-10">{</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">declaration</span><span +class="cmsy-10">⟩</span><span +class="cmtt-10">} </span>whenever the language is set. For example: + + + +</p> + <div class="verbatim" id="verbatim-18"> \setdefaultdate{\ddmmyyyydate} -</PRE> - -<P> -The commands <TT>\monthname</TT> and <TT>\shortmonthname</TT>, -will produce the month name in the current language. -If you want the month name in a specific language, you -can use the command <TT>\monthname</TT><I>lang</I>. -For example, <code>\monthnamefrench[6]</code> will produce the output: -juin. Note that <TT>\textdate</TT> is formatted for English dates, -and won't look right if used with another language setting. If you -want a textual date, the <TT>fmtcount</TT> package (which is -loaded by <TT>datetime</TT>) defines some commands which display -a number or ordinal as a word, but it only has very limited -multilingual support. See the <TT>fmtcount</TT> documentation -for further details. - -<P> -There is currently only <I>limited</I> multilingual support for -<TT>\dayofweekname</TT> and <TT>\shortdayofweekname</TT> (just -English, French, Portuguese, Spanish and German<A NAME="tex2html8" - HREF="#foot394"><SUP>6</SUP></A>). You can add support -for other languages by defining the commands -<TT>\dayofweeknameid</TT><I>lang</I> and -<TT>\shortdayofweeknameid</TT><I>lang</I>. Note that these -commands only take <I>one</I> argument which should be -a number from 1 to 7 indicating the day of the week. - -<P> -You can use the following as templates. Replace -<TT>english</TT> with the name of your language (as given -by <TT>\languagename</TT>) and replace <TT>Sunday</TT> -etc as appropriate: -<PRE> +</div> +<!--l. 571--><p class="nopar" > +</p><!--l. 573--><p class="indent" > The commands <span +class="cmtt-10">\monthname</span><a + id="dx1-14015"></a> and <span +class="cmtt-10">\shortmonthname</span><a + id="dx1-14016"></a>, will produce the month name in +the current language. If you want the month name in a specific language, you can +use the command <span +class="cmtt-10">\monthname</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">lang</span><span +class="cmsy-10">⟩</span>. For example, <span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\monthnamefrench[6]</span></span></span> +will produce the output: juin. Note that <span +class="cmtt-10">\textdate</span><a + id="dx1-14017"></a> is formatted for English +dates, and won’t look right if used with another language setting. If you want +a textual date, the <span +class="cmss-10">fmtcount</span><a + id="dx1-14018"></a> package (which is loaded by <span +class="cmss-10">datetime</span>) defines +some commands which display a number or ordinal as a word, but it only has +very limited multilingual support. See the <span +class="cmss-10">fmtcount</span><a + id="dx1-14019"></a> documentation for further +details. +</p><!--l. 586--><p class="indent" > There is currently only <span +class="cmti-10">limited </span>multilingual support for <span +class="cmtt-10">\dayofweekname</span><a + id="dx1-14020"></a> +and <span +class="cmtt-10">\shortdayofweekname</span><a + id="dx1-14021"></a> (just English, French, Portuguese, Spanish and +German<span class="footnote-mark"><a +href="#fn6x0" id="fn6x0-bk"><sup class="textsuperscript">6</sup></a></span><a + id="x1-14022f6"></a>). +You can add support for other languages by defining the commands <span +class="cmtt-10">\dayofweeknameid</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">lang</span><span +class="cmsy-10">⟩</span> +and <span +class="cmtt-10">\shortdayofweeknameid</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">lang</span><span +class="cmsy-10">⟩</span>. Note that these commands only take <span +class="cmti-10">one</span> +argument which should be a number from 1 to 7 indicating the day of the +week. +</p><!--l. 596--><p class="indent" > You can use the following as templates. Replace <span +class="cmtt-10">english </span>with the name of your +language (as given by <span +class="cmtt-10">\languagename</span><a + id="dx1-14023"></a>) and replace <span +class="cmtt-10">Sunday </span>etc as appropriate: + + + +</p> + <div class="verbatim" id="verbatim-19"> \providecommand*{\dayofweeknameidenglish}[1]{% -\ifcase#1\relax -\or Sunday% -\or Monday% -\or Tuesday% -\or Wednesday% -\or Thursday% -\or Friday% -\or Saturday% -\fi} - -\providecommand*{\shortdayofweeknameidenglish}[1]{% -\ifcase#1\relax -\or Sun% -\or Mon% -\or Tue% -\or Wed% -\or Thu% -\or Fri% -\or Sat% -\fi} -</PRE> -If you want them added to future versions of -<TT>datetime</TT>, please email me the code. - -<P> - -<H1><A NAME="SECTION000110000000000000000"> -Registers</A> -</H1> - -<P> -TeX provides <TT>\day</TT>, <TT>\month</TT>, <TT>\year</TT> registers. In -addition, <TT>datetime</TT> provides the registers: -<TT>\currenthour</TT>, <TT>\currentminute</TT> and <TT>\currentsecond</TT>. -Note that old distributions of TeX will always have -<TT>\currentsecond</TT> set to zero. - -<P> - -<H1><A NAME="SECTION000120000000000000000"> -Configuration File</A> -</H1> - -<P> -As from Version 2.4, the <TT>datetime</TT> package will read in settings -from the configuration file <TT>datetime.cfg</TT>, if it exists, -which will override the default package options. For example, -suppose you prefer a short date without the day of week by default, -you will need to create a file called <TT>datetime.cfg</TT> that -contains the line: -<PRE> + <br />\ifcase#1\relax + <br />\or Sunday% + <br />\or Monday% + <br />\or Tuesday% + <br />\or Wednesday% + <br />\or Thursday% + <br />\or Friday% + <br />\or Saturday% + <br />\fi} + <br />\providecommand*{\shortdayofweeknameidenglish}[1]{% + <br />\ifcase#1\relax + <br />\or Sun% + <br />\or Mon% + <br />\or Tue% + <br />\or Wed% + <br />\or Thu% + <br />\or Fri% + <br />\or Sat% + <br />\fi} +</div> +<!--l. 622--><p class="nopar" > If you want them added to future versions of <span +class="cmss-10">datetime</span><a + id="dx1-14024"></a>, please email me the +code. +</p><!--l. 626--><p class="noindent" > +</p> +<!--l. 626--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">10 </span> <a + id="x1-1500010"></a>Registers</h3> +<!--l. 628--><p class="noindent" ><span class="TEX">T<span +class="E">E</span>X</span> provides <span +class="cmtt-10">\day</span><a + id="dx1-15001"></a>, <span +class="cmtt-10">\month</span><a + id="dx1-15002"></a> and <span +class="cmtt-10">\year</span><a + id="dx1-15003"></a> registers. In addition, <span +class="cmss-10">datetime </span>provides the +registers: <span +class="cmtt-10">\currenthour</span><a + id="dx1-15004"></a>, <span +class="cmtt-10">\currentminute</span><a + id="dx1-15005"></a> and <span +class="cmtt-10">\currentsecond</span><a + id="dx1-15006"></a>. Note that old +distributions of <span class="TEX">T<span +class="E">E</span>X</span> will always have <span +class="cmtt-10">\currentsecond </span>set to zero. +</p><!--l. 634--><p class="noindent" > +</p> +<!--l. 634--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">11 </span> <a + id="x1-1600011"></a>Configuration File</h3> +<!--l. 636--><p class="noindent" >As from Version 2.4, the <span +class="cmss-10">datetime </span>package will read in settings from the configuration +file <span +class="cmtt-10">datetime.cfg</span>, if it exists, which will override the default package options. +For example, suppose you prefer a short date without the day of week by +default, you will need to create a file called <span +class="cmtt-10">datetime.cfg </span>that contains the +line: + + + +</p> + <div class="verbatim" id="verbatim-20"> \shortdate\showdowfalse -</PRE> -The file <TT>datetime.cfg</TT> should then go somewhere on the -TeX path. Now all you need to do is: -<PRE> +</div> +<!--l. 644--><p class="nopar" > The file <span +class="cmtt-10">datetime.cfg </span>should then go somewhere on the <span class="TEX">T<span +class="E">E</span>X</span> path. Now all you need +to do is: + + + +</p> + <div class="verbatim" id="verbatim-21"> \usepackage{datetime} -</PRE> -without having to specify the <TT>short</TT> and -<TT>nodayofweek</TT> options. - -<P> -You can also use this file to define and set your own date -styles. For example, you could create -a configuration file that has the following lines: -<PRE> +</div> +<!--l. 649--><p class="nopar" > without having to specify the <span +class="cmss-10">short</span><a + id="dx1-16001"></a> and <span +class="cmss-10">nodayofweek</span><a + id="dx1-16002"></a> options. +</p><!--l. 653--><p class="indent" > You can also use this file to define and set your own date styles. For example, you +could create a configuration file that has the following lines: + + + +</p> + <div class="verbatim" id="verbatim-22"> \newdateformat{dashdate}{\twodigit{\THEDAY}-\twodigit{\THEMONTH}-\THEYEAR} -\dashdate -</PRE> -Whenever you use the <TT>datetime</TT> package, it will now -use this format by default. - -<P> - -<H1><A NAME="SECTION000130000000000000000"> -LaTeX2HTML styles</A> -</H1> - -<P> -Version 2.43 and above of the <TT>datetime</TT> bundle -supplies the LaTeX2HTML style file <TT>datetime.perl</TT>. -This file should be placed in a -directory searched by LaTeX2HTML. The following limitations -apply to the LaTeX2HTML styles: - -<P> - -<UL> -<LI>The configuration file <TT>datetime.cfg</TT> -is currently ignored. (This is because -I can't work out the correct code to do this. If you -know how to do this, please let me know.) You can however -do: -<PRE> -\usepackage{datetime} -\html{\input{datetime.cfg}} -</PRE> -This, I agree, is an unpleasant cludge. - -<P> -</LI> -<LI>The commands <TT>\monthname</TT><I>language</I> are not -implemented. - -<P> -</LI> -<LI>Some of the languages are not implemented. - -<P> -</LI> -<LI>The package option <TT>nodate</TT> is not implemented. - -<P> -</LI> -</UL> - -<P> - -<H1><A NAME="SECTION000140000000000000000"> -Troubleshooting</A> -</H1> - -<P> -There is a <TT>datetime</TT> FAQ available at: -<TT><A NAME="tex2html9" - HREF="http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/">http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/</A></TT> -<P> -<BR><HR><H4>Footnotes</H4> -<DL> -<DT><A NAME="foot456">... -selected</A><A - HREF="datetime-manual.html#tex2html2"><SUP>1</SUP></A></DT> -<DD>in fact, you may get an error from the -<TT>fmtcount</TT> package if you are using a language that it -doesn't support. - -</DD> -<DT><A NAME="foot154">... <code>\pdfdate</code></A><A - HREF="datetime-manual.html#tex2html3"><SUP>2</SUP></A></DT> -<DD>thanks to Ulrich Dirr for -asking about this - -</DD> -<DT><A NAME="foot461">...year</A><A - HREF="datetime-manual.html#tex2html5"><SUP>3</SUP></A></DT> -<DD>Note the -name change since version 1.1. The command name was changed from -<TT>\thedate</TT> to <TT>\formatdate</TT> to avoid a name clash when using the -<TT>seminar</TT> class file. - -</DD> -<DT><A NAME="foot465">...today</A><A - HREF="datetime-manual.html#tex2html6"><SUP>4</SUP></A></DT> -<DD>To be more precise, -<TT>\today</TT> is defined to be -<TT>\formatdate{<TT>\day</TT>}{<TT>\month</TT>}{<TT>\year</TT>}</TT> where -<TT>\longdate</TT> etc change the definition of <TT>\formatdate</TT> - -</DD> -<DT><A NAME="foot255">... command:</A><A - HREF="datetime-manual.html#tex2html7"><SUP>5</SUP></A></DT> -<DD>Thanks to Denis Bitouzé for asking about this - -</DD> -<DT><A NAME="foot394">... German</A><A - HREF="datetime-manual.html#tex2html8"><SUP>6</SUP></A></DT> -<DD>thanks -to Uwe Bieling for supplying the German names - -</DD> -</DL> -<BR><HR> -<ADDRESS> -<A href="http://theoval.cmp.uea.ac.uk/~nlct/">Nicola L. C. Talbot</A>. -<A HREF="http://www.cmp.uea.ac.uk/">School of Computing Sciences</A>. -<A HREF="http://www.uea.ac.uk/">University of East Anglia.</A> -Last Modified: 2010-02-06 -</ADDRESS> -</BODY> -</HTML> + <br />\dashdate +</div> +<!--l. 659--><p class="nopar" > Whenever you use the <span +class="cmss-10">datetime </span>package, it will now use this format by default. +</p><!--l. 663--><p class="noindent" > +</p> +<!--l. 663--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">12 </span> <a + id="x1-1700012"></a>LaTeX2HTML styles</h3> +<a + id="dx1-17001"></a> +<a + id="dx1-17002"></a> +<!--l. 667--><p class="noindent" >Version 2.43 and above of the <span +class="cmss-10">datetime </span>bundle supplies the LaTeX2HTML style file +<span +class="cmtt-10">datetime.perl</span>. This file should be placed in a directory searched by LaTeX2HTML. +The following limitations apply to the LaTeX2HTML styles: +</p> + <ul class="itemize1"> + <li class="itemize">The configuration file <span +class="cmtt-10">datetime.cfg </span>is currently ignored. You can however + do: + + + + <div class="verbatim" id="verbatim-23"> + \usepackage{datetime} +  <br />\html{\input{datetime.cfg}} +</div> + <!--l. 680--><p class="nopar" > This, I agree, is an unpleasant cludge. + </p></li> + <li class="itemize">The commands <span +class="cmtt-10">\monthname</span><span +class="cmsy-10">⟨</span><span +class="cmti-10">language</span><span +class="cmsy-10">⟩ </span>are not implemented. + </li> + <li class="itemize">Some of the languages are not implemented. + </li> + <li class="itemize">The package option <span +class="cmss-10">nodate</span><a + id="dx1-17003"></a> is not implemented. + </li></ul> +<!--l. 692--><p class="noindent" > +</p> +<!--l. 692--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="sectionHead"><span class="titlemark">13 </span> <a + id="x1-1800013"></a>Troubleshooting</h3> +<!--l. 694--><p class="noindent" >There is a <span +class="cmss-10">datetime</span><a + id="dx1-18001"></a> FAQ available at: <a +href="http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/" class="url" ><span +class="cmtt-10">http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/</span></a> +</p><!--l. 699--><p class="indent" > <a + id="likesection.1"></a><a + id="Q1-1-19"></a> +</p><!--l. 2--><p class="noindent" > +</p> +<!--l. 2--><p class="noindent" ><a +href="#top">Top</a></p><h3 class="likesectionHead"><a + id="x1-1900013"></a>Index</h3> +<!--l. 4--><p class="noindent" > <span +class="cmbx-10">A</span> +</p> + <div class="theindex"><span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\amname</span></span></span>  <a +href="datetime-manual.html#dx1-12003" ><span class="underline">1</span></a>, <a +href="datetime-manual.html#dx1-12006" ><span class="underline">2</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\amorpmname</span></span></span>  <a +href="datetime-manual.html#dx1-12005" ><span class="underline">3</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\amorpmstring</span></span></span>  <a +href="datetime-manual.html#dx1-12010" ><span class="underline">4</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\amstring</span></span></span>  <a +href="datetime-manual.html#dx1-12008" ><span class="underline">5</span></a>, <a +href="datetime-manual.html#dx1-12011" ><span class="underline">6</span></a> <br /></span> +<p class="theindex"> <span +class="cmbx-10">B</span> +<span class="index-item"><span +class="cmss-10">babel </span>package  <a +href="datetime-manual.html#dx1-2011" >7</a>, <a +href="datetime-manual.html#dx1-2012" >8</a>, <a +href="datetime-manual.html#dx1-7001" >9</a>, <a +href="datetime-manual.html#dx1-14006" >10</a>, <a +href="datetime-manual.html#dx1-14007" >11</a>, <a +href="datetime-manual.html#dx1-14012" >12</a>, <a +href="datetime-manual.html#dx1-14013" >13</a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">C</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\currenthour</span></span></span>  <a +href="datetime-manual.html#dx1-15004" ><span class="underline">14</span></a> <br /></span> + + + +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\currentminute</span></span></span>  <a +href="datetime-manual.html#dx1-15005" ><span class="underline">15</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\currentsecond</span></span></span>  <a +href="datetime-manual.html#dx1-15006" ><span class="underline">16</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\currenttime</span></span></span>  <a +href="datetime-manual.html#dx1-8001" ><span +class="cmti-10">17</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">D</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\dateseparator</span></span></span>  <a +href="datetime-manual.html#dx1-3003" ><span +class="cmti-10">18</span></a>, <a +href="datetime-manual.html#dx1-4003" ><span class="underline">19</span></a>, <a +href="datetime-manual.html#dx1-12001" ><span class="underline">20</span></a> <br /></span> +<span class="index-item"><span +class="cmss-10">datetime </span>package  <a +href="datetime-manual.html#dx1-14009" >21</a>, <a +href="datetime-manual.html#dx1-14024" >22</a>, <a +href="datetime-manual.html#dx1-18001" >23</a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\day</span></span></span>  <a +href="datetime-manual.html#dx1-15001" ><span class="underline">24</span></a> <br /></span> +<span class="index-item"><span +class="cmss-10">DAY </span>counter  <a +href="datetime-manual.html#dx1-10005" >25</a>, <a +href="datetime-manual.html#dx1-10013" >26</a>, <a +href="datetime-manual.html#dx1-10016" >27</a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\dayofweekname</span></span></span>  <a +href="datetime-manual.html#dx1-9005" ><span +class="cmti-10">28</span></a>, <a +href="datetime-manual.html#dx1-14020" ><span class="underline">29</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\ddmmyydate</span></span></span>  <a +href="datetime-manual.html#dx1-5013" ><span +class="cmti-10">30</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\ddmmyyyydate</span></span></span>  <a +href="datetime-manual.html#dx1-3002" ><span class="underline">31</span></a>, <a +href="datetime-manual.html#dx1-5009" ><span +class="cmti-10">32</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\displaydate</span></span></span>  <a +href="datetime-manual.html#dx1-11004" ><span +class="cmti-10">33</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\dmyydate</span></span></span>  <a +href="datetime-manual.html#dx1-5015" ><span +class="cmti-10">34</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\dmyyyydate</span></span></span>  <a +href="datetime-manual.html#dx1-5011" ><span +class="cmti-10">35</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">F</span> +<span class="index-item"><span +class="cmss-10">fmtcount </span>package  <a +href="datetime-manual.html#dx1-2007" >36</a>, <a +href="datetime-manual.html#dx1-2009" >37</a>, <a +href="datetime-manual.html#dx1-5023" >38</a>, <a +href="datetime-manual.html#dx1-9013" >39</a>, <a +href="datetime-manual.html#dx1-14018" >40</a>, <a +href="datetime-manual.html#dx1-14019" >41</a>, <a +href="datetime-manual.html#dx1-5022" >42</a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\formatdate</span></span></span>  <a +href="datetime-manual.html#dx1-9016" ><span +class="cmti-10">43</span></a>, <a +href="datetime-manual.html#dx1-10010" ><span class="underline">44</span></a>, <a +href="datetime-manual.html#dx1-11003" ><span class="underline">45</span></a>, <a +href="datetime-manual.html#dx1-14010" ><span class="underline">46</span></a>, <a +href="datetime-manual.html#dx1-9020" ><span class="underline">47</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\formattime</span></span></span>  <a +href="datetime-manual.html#dx1-8002" ><span +class="cmti-10">48</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">G</span> +<span class="index-item"><span +class="cmss-10">german </span>package  <a +href="datetime-manual.html#dx1-14005" >49</a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\getdateday</span></span></span>  <a +href="datetime-manual.html#dx1-11005" ><span +class="cmti-10">50</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\getdatemonth</span></span></span>  <a +href="datetime-manual.html#dx1-11006" ><span +class="cmti-10">51</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\getdateyear</span></span></span>  <a +href="datetime-manual.html#dx1-11007" ><span +class="cmti-10">52</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">H</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\halfpast</span></span></span>  <a +href="datetime-manual.html#dx1-12013" ><span class="underline">53</span></a> <br /></span> +<span class="index-item"><span +class="cmss-10">HOUR </span>counter  <a +href="datetime-manual.html#dx1-8006" >54</a> <br /></span> +<span class="index-item"><span +class="cmss-10">HOURXII </span>counter  <a +href="datetime-manual.html#dx1-8009" >55</a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">I</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\ifshowdow</span></span></span>  <a +href="datetime-manual.html#dx1-9007" ><span +class="cmti-10">56</span></a> <br /></span> +<span class="index-item"><span +class="cmss-10">ifthen </span>package  <a +href="datetime-manual.html#dx1-9010" >57</a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">L</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\languagename</span></span></span>  <a +href="datetime-manual.html#dx1-14023" ><span class="underline">58</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\longdate</span></span></span>  <a +href="datetime-manual.html#dx1-5001" ><span +class="cmti-10">59</span></a>, <a +href="datetime-manual.html#dx1-9022" ><span class="underline">60</span></a>, <a +href="datetime-manual.html#dx1-13017" ><span class="underline">61</span></a>, <a +href="datetime-manual.html#dx1-14011" ><span class="underline">62</span></a>, <a +href="datetime-manual.html#dx1-9021" ><span class="underline">63</span></a> <br /></span> + + + +</p><p class="theindex"> <span +class="cmbx-10">M</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\mdyydate</span></span></span>  <a +href="datetime-manual.html#dx1-6007" ><span +class="cmti-10">64</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\mdyyyydate</span></span></span>  <a +href="datetime-manual.html#dx1-6004" ><span +class="cmti-10">65</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\midnight</span></span></span>  <a +href="datetime-manual.html#dx1-12017" ><span class="underline">66</span></a> <br /></span> +<span class="index-item"><span +class="cmss-10">MINUTE </span>counter  <a +href="datetime-manual.html#dx1-8007" >67</a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\mmddyydate</span></span></span>  <a +href="datetime-manual.html#dx1-6005" ><span +class="cmti-10">68</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\mmddyyyydate</span></span></span>  <a +href="datetime-manual.html#dx1-6002" ><span +class="cmti-10">69</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\month</span></span></span>  <a +href="datetime-manual.html#dx1-15002" ><span class="underline">70</span></a> <br /></span> +<span class="index-item"><span +class="cmss-10">MONTH </span>counter  <a +href="datetime-manual.html#dx1-10006" >71</a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\monthname</span></span></span>  <a +href="datetime-manual.html#dx1-9003" ><span +class="cmti-10">72</span></a>, <a +href="datetime-manual.html#dx1-14015" ><span class="underline">73</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">N</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\newdate</span></span></span>  <a +href="datetime-manual.html#dx1-11002" ><span +class="cmti-10">74</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\newdateformat</span></span></span>  <a +href="datetime-manual.html#dx1-10001" ><span +class="cmti-10">75</span></a>, <a +href="datetime-manual.html#dx1-10011" ><span class="underline">76</span></a>, <a +href="datetime-manual.html#dx1-10014" ><span class="underline">77</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\newtimeformat</span></span></span>  <a +href="datetime-manual.html#dx1-8004" ><span +class="cmti-10">78</span></a> <br /></span> +<span class="index-item"><span +class="cmss-10">ngerman </span>package  <a +href="datetime-manual.html#dx1-14001" >79</a>, <a +href="datetime-manual.html#dx1-14003" >80</a>, <a +href="datetime-manual.html#dx1-14004" >81</a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\noon</span></span></span>  <a +href="datetime-manual.html#dx1-12016" ><span class="underline">82</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">O</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\oclockstring</span></span></span>  <a +href="datetime-manual.html#dx1-12018" ><span class="underline">83</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\ordinal</span></span></span>  <a +href="datetime-manual.html#dx1-2008" ><span class="underline">84</span></a>, <a +href="datetime-manual.html#dx1-10008" ><span class="underline">85</span></a>, <a +href="datetime-manual.html#dx1-10015" ><span class="underline">86</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\ordinaldate</span></span></span>  <a +href="datetime-manual.html#dx1-9011" ><span +class="cmti-10">87</span></a>, <a +href="datetime-manual.html#dx1-10017" ><span class="underline">88</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\ordinalnum</span></span></span>  <a +href="datetime-manual.html#dx1-9012" ><span class="underline">89</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">P</span> +<span class="index-item">package options:<br /></span> +<span class="index-subitem">    <span +class="cmss-10">12hr</span>  <a +href="datetime-manual.html#dx1-13023" ><span class="underline">90</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">24hr</span>  <a +href="datetime-manual.html#dx1-13022" ><span class="underline">91</span></a>, <a +href="datetime-manual.html#dx1-13032" ><span class="underline">92</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">dayofweek</span>  <a +href="datetime-manual.html#dx1-5003" ><span class="underline">93</span></a>, <a +href="datetime-manual.html#dx1-5007" ><span class="underline">94</span></a>, <a +href="datetime-manual.html#dx1-5019" ><span class="underline">95</span></a>, <a +href="datetime-manual.html#dx1-9008" ><span class="underline">96</span></a>, <a +href="datetime-manual.html#dx1-9009" ><span class="underline">97</span></a>, <a +href="datetime-manual.html#dx1-13016" ><span class="underline">98</span></a>, <a +href="datetime-manual.html#dx1-13031" ><span class="underline">99</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">ddmmyy</span>  <a +href="datetime-manual.html#dx1-13006" ><span class="underline">100</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">ddmmyyyy</span>  <a +href="datetime-manual.html#dx1-13004" ><span class="underline">101</span></a>, <a +href="datetime-manual.html#dx1-13027" ><span class="underline">102</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">dmyy</span>  <a +href="datetime-manual.html#dx1-13007" ><span class="underline">103</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">dmyyyy</span>  <a +href="datetime-manual.html#dx1-13005" ><span class="underline">104</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">hhmmss</span>  <a +href="datetime-manual.html#dx1-13021" ><span class="underline">105</span></a>, <a +href="datetime-manual.html#dx1-13028" ><span class="underline">106</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">iso</span>  <a +href="datetime-manual.html#dx1-13026" ><span class="underline">107</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">level</span>  <a +href="datetime-manual.html#dx1-13015" ><span class="underline">108</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">long</span>  <a +href="datetime-manual.html#dx1-13001" ><span class="underline">109</span></a>, <a +href="datetime-manual.html#dx1-13029" ><span class="underline">110</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">mdyy</span>  <a +href="datetime-manual.html#dx1-13013" ><span class="underline">111</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">mdyyyy</span>  <a +href="datetime-manual.html#dx1-13011" ><span class="underline">112</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">mmddyy</span>  <a +href="datetime-manual.html#dx1-13012" ><span class="underline">113</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">mmddyyyy</span>  <a +href="datetime-manual.html#dx1-13010" ><span class="underline">114</span></a> <br /></span> + + + +<span class="index-subitem">    <span +class="cmss-10">ngerman</span>  <a +href="datetime-manual.html#dx1-14002" ><span class="underline">115</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">nodate</span>  <a +href="datetime-manual.html#dx1-2004" ><span class="underline">116</span></a>, <a +href="datetime-manual.html#dx1-13025" ><span class="underline">117</span></a>, <a +href="datetime-manual.html#dx1-17003" ><span class="underline">118</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">nodayofweek</span>  <a +href="datetime-manual.html#dx1-5004" ><span class="underline">119</span></a>, <a +href="datetime-manual.html#dx1-5008" ><span class="underline">120</span></a>, <a +href="datetime-manual.html#dx1-5020" ><span class="underline">121</span></a>, <a +href="datetime-manual.html#dx1-13020" ><span class="underline">122</span></a>, <a +href="datetime-manual.html#dx1-16002" ><span class="underline">123</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">oclock</span>  <a +href="datetime-manual.html#dx1-13024" ><span class="underline">124</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">raise</span>  <a +href="datetime-manual.html#dx1-13014" ><span class="underline">125</span></a>, <a +href="datetime-manual.html#dx1-13030" ><span class="underline">126</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">short</span>  <a +href="datetime-manual.html#dx1-13002" ><span class="underline">127</span></a>, <a +href="datetime-manual.html#dx1-16001" ><span class="underline">128</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">text</span>  <a +href="datetime-manual.html#dx1-13008" ><span class="underline">129</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">us</span>  <a +href="datetime-manual.html#dx1-13009" ><span class="underline">130</span></a> <br /></span> +<span class="index-subitem">    <span +class="cmss-10">yyyymmdd</span>  <a +href="datetime-manual.html#dx1-13003" ><span class="underline">131</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\pdfdate</span></span></span>  <a +href="datetime-manual.html#dx1-9001" ><span +class="cmti-10">132</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\pmname</span></span></span>  <a +href="datetime-manual.html#dx1-12004" ><span class="underline">133</span></a>, <a +href="datetime-manual.html#dx1-12007" ><span class="underline">134</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\pmstring</span></span></span>  <a +href="datetime-manual.html#dx1-12009" ><span class="underline">135</span></a>, <a +href="datetime-manual.html#dx1-12012" ><span class="underline">136</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">Q</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\quarterpast</span></span></span>  <a +href="datetime-manual.html#dx1-12014" ><span class="underline">137</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\quarterto</span></span></span>  <a +href="datetime-manual.html#dx1-12015" ><span class="underline">138</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">S</span> +<span class="index-item"><span +class="cmss-10">SECOND </span>counter  <a +href="datetime-manual.html#dx1-8008" >139</a> <br /></span> +<span class="index-item"><span +class="cmss-10">seminar </span>package  <a +href="datetime-manual.html#dx1-9015" >140</a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\setdefaultdate</span></span></span>  <a +href="datetime-manual.html#dx1-14014" ><span +class="cmti-10">141</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\settimeformat</span></span></span>  <a +href="datetime-manual.html#dx1-8003" ><span +class="cmti-10">142</span></a>, <a +href="datetime-manual.html#dx1-8005" ><span class="underline">143</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\shortdate</span></span></span>  <a +href="datetime-manual.html#dx1-5005" ><span +class="cmti-10">144</span></a>, <a +href="datetime-manual.html#dx1-13018" ><span class="underline">145</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\shortdayofweekname</span></span></span>  <a +href="datetime-manual.html#dx1-9006" ><span +class="cmti-10">146</span></a>, <a +href="datetime-manual.html#dx1-14021" ><span class="underline">147</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\shortmonthname</span></span></span>  <a +href="datetime-manual.html#dx1-9004" ><span +class="cmti-10">148</span></a>, <a +href="datetime-manual.html#dx1-14016" ><span class="underline">149</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">T</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\textdate</span></span></span>  <a +href="datetime-manual.html#dx1-5017" ><span +class="cmti-10">150</span></a>, <a +href="datetime-manual.html#dx1-13019" ><span class="underline">151</span></a>, <a +href="datetime-manual.html#dx1-14017" ><span class="underline">152</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\THEDAY</span></span></span>  <a +href="datetime-manual.html#dx1-10002" ><span class="underline">153</span></a>, <a +href="datetime-manual.html#dx1-10012" ><span class="underline">154</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\THEHOUR</span></span></span>  <a +href="datetime-manual.html#dx1-8012" ><span class="underline">155</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\THEHOURXII</span></span></span>  <a +href="datetime-manual.html#dx1-8015" ><span class="underline">156</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\THEMINUTE</span></span></span>  <a +href="datetime-manual.html#dx1-8013" ><span class="underline">157</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\THEMONTH</span></span></span>  <a +href="datetime-manual.html#dx1-10003" ><span class="underline">158</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\THESECOND</span></span></span>  <a +href="datetime-manual.html#dx1-8014" ><span class="underline">159</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\THETOHOUR</span></span></span>  <a +href="datetime-manual.html#dx1-8016" ><span class="underline">160</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\THETOMINUTE</span></span></span>  <a +href="datetime-manual.html#dx1-8017" ><span class="underline">161</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\THEYEAR</span></span></span>  <a +href="datetime-manual.html#dx1-10004" ><span class="underline">162</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\timeseparator</span></span></span>  <a +href="datetime-manual.html#dx1-8018" ><span +class="cmti-10">163</span></a>, <a +href="datetime-manual.html#dx1-12002" ><span class="underline">164</span></a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\today</span></span></span>  <a +href="datetime-manual.html#dx1-2003" ><span class="underline">165</span></a>, <a +href="datetime-manual.html#dx1-3001" ><span class="underline">166</span></a>, <a +href="datetime-manual.html#dx1-4002" ><span class="underline">167</span></a>, <a +href="datetime-manual.html#dx1-5002" ><span class="underline">168</span></a>, <a +href="datetime-manual.html#dx1-5006" ><span class="underline">169</span></a>, <a +href="datetime-manual.html#dx1-5010" ><span class="underline">170</span></a>, <a +href="datetime-manual.html#dx1-5012" ><span class="underline">171</span></a>, <a +href="datetime-manual.html#dx1-5014" ><span class="underline">172</span></a>, <a +href="datetime-manual.html#dx1-5016" ><span class="underline">173</span></a>, <a +href="datetime-manual.html#dx1-5018" ><span class="underline">174</span></a>, <a +href="datetime-manual.html#dx1-6003" ><span class="underline">175</span></a>, <a +href="datetime-manual.html#dx1-6006" ><span class="underline">176</span></a>, <a +href="datetime-manual.html#dx1-6008" ><span class="underline">177</span></a>, <a +href="datetime-manual.html#dx1-9017" ><span class="underline">178</span></a>, <a +href="datetime-manual.html#dx1-10009" ><span class="underline">179</span></a>, <a +href="datetime-manual.html#dx1-14008" ><span class="underline">180</span></a>, <a +href="datetime-manual.html#dx1-9019" ><span class="underline">181</span></a> <br /></span> +<span class="index-item"><span +class="cmss-10">TOHOUR </span>counter  <a +href="datetime-manual.html#dx1-8010" >182</a> <br /></span> +<span class="index-item"><span +class="cmss-10">TOMINUTE </span>counter  <a +href="datetime-manual.html#dx1-8011" >183</a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\twodigit</span></span></span>  <a +href="datetime-manual.html#dx1-9023" ><span +class="cmti-10">184</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">U</span> + + + +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\usdate</span></span></span>  <a +href="datetime-manual.html#dx1-6001" ><span +class="cmti-10">185</span></a> <br /></span> +</p><p class="theindex"> <span +class="cmbx-10">Y</span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\year</span></span></span>  <a +href="datetime-manual.html#dx1-15003" ><span class="underline">186</span></a> <br /></span> +<span class="index-item"><span +class="cmss-10">YEAR </span>counter  <a +href="datetime-manual.html#dx1-10007" >187</a> <br /></span> +<span class="index-item"><span class="obeylines-h"><span class="verb"><span +class="cmtt-10">\yyyymmdddate</span></span></span>  <a +href="datetime-manual.html#dx1-4001" ><span +class="cmti-10">188</span></a> <br /></span> +</p></div> + <div class="footnotes"><!--l. 143--><p class="noindent" ><span class="footnote-mark"><a +href="#fn1x0-bk" id="fn1x0"><sup class="textsuperscript">1</sup></a></span><span +class="cmr-8">in fact, you may get an error from the </span><span +class="cmss-8">fmtcount</span><a + id="dx1-5022"></a> <span +class="cmr-8">package if you are using a language that it doesn’t</span> +<span +class="cmr-8">support.</span></p> +<!--l. 259--><p class="noindent" ><span class="footnote-mark"><a +href="#fn2x0-bk" id="fn2x0"><sup class="textsuperscript">2</sup></a></span><span +class="cmr-8">thanks to Ulrich Dirr for asking about this</span></p> +<!--l. 349--><p class="indent" > <span class="footnote-mark"><a +href="#fn3x0-bk" id="fn3x0"><sup class="textsuperscript">3</sup></a></span><span +class="cmr-8">Note the name change since version 1.1. The command name was changed from </span><span +class="cmtt-8">\thedate </span><span +class="cmr-8">to</span> +<span +class="cmtt-8">\formatdate </span><span +class="cmr-8">to avoid a name clash when using the </span><span +class="cmss-8">seminar</span><a + id="dx1-9015"></a> <span +class="cmr-8">class file.</span></p> +<!--l. 356--><p class="indent" > <span class="footnote-mark"><a +href="#fn4x0-bk" id="fn4x0"><sup class="textsuperscript">4</sup></a></span><span +class="cmr-8">To be more precise, </span><span +class="cmtt-8">\today</span><a + id="dx1-9019"></a> <span +class="cmr-8">is defined to be </span><span +class="cmtt-8">\formatdate</span><a + id="dx1-9020"></a><span +class="cmsy-8">{</span><span +class="cmtt-8">\day</span><span +class="cmsy-8">}{</span><span +class="cmtt-8">\month</span><span +class="cmsy-8">}{</span><span +class="cmtt-8">\year</span><span +class="cmsy-8">} </span><span +class="cmr-8">where</span> +<span +class="cmtt-8">\longdate</span><a + id="dx1-9021"></a> <span +class="cmr-8">etc change the definition of </span><span +class="cmtt-8">\formatdate</span></p> +<!--l. 434--><p class="indent" > <span class="footnote-mark"><a +href="#fn5x0-bk" id="fn5x0"><sup class="textsuperscript">5</sup></a></span><span +class="cmr-8">Thanks to Denis Bitouz</span><span +class="cmr-8">é for asking about this</span></p> +<!--l. 589--><p class="indent" > <span class="footnote-mark"><a +href="#fn6x0-bk" id="fn6x0"><sup class="textsuperscript">6</sup></a></span><span +class="cmr-8">thanks to Uwe Bieling for supplying the German names</span></p> </div> + +</body></html> + + + + diff --git a/Master/texmf-dist/doc/latex/datetime/datetime-manual.tex b/Master/texmf-dist/doc/latex/datetime/datetime-manual.tex new file mode 100644 index 00000000000..f7e338167b8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime/datetime-manual.tex @@ -0,0 +1,701 @@ +\documentclass{nlctdoc} + +\usepackage[colorlinks, + bookmarks, + bookmarksopen, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, + pdftitle={datetime.sty: A Date and Time Package}, + pdfkeywords={date,time,LaTeX}]{hyperref} + +\usepackage{creatdtx} + +\begin{document} +\RecordChanges +\OnlyDescription + +\title{datetime.sty v2.58: +Formatting Current Date and Time} + \author{Nicola L. C. Talbot\\[10pt] + School of Computing Sciences\\ + University of East Anglia\\ + Norwich. NR4 7TJ.\\ + United Kingdom.\\ + \url{http://theoval.cmp.uea.ac.uk/~nlct/}} + \date{2010-09-21} + \maketitle + \tableofcontents + \section{Introduction} +\changes{1.0}{2000/08/08}{First release} +\changes{1.01}{2000/09/18}{Documentation added} +The \styfmt{datetime} package is a \LaTeXe\ package that +provides various different formats for \ics{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 \pkgopt{nodate} to the package. +\changes{2.3}{2004/05/01}{nodate package option added} + +\changes{2.41}{2004/10/22}{split package into two files: +datetime.sty and fmtcount.sty} +Since version 2.4, the \styfmt{datetime} package has been +separated into two packages: \styfmt{datetime} and +\sty{fmtcount}. When I originally created this package, +I defined the commands, \ics{ordinal} etc which could be used +in the definition of \cs{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 \sty{fmtcount} package is now distributed separately +from the \styfmt{datetime} package, and will also need to +be installed. + +\changes{2.42}{2004/11/01}{made package compatible with babel} +As from version 2.42, the \styfmt{datetime} package is now +compatible with \sty{babel}, however you must load the +\styfmt{datetime} package \emph{after} the \sty{babel} package. +For example: +\begin{verbatim} +\usepackage[francais]{babel} +\usepackage{datetime} +\end{verbatim} + + \section{Predefined Date Formats} + There are various declarations that change the effect of +\ics{today}. The change can be localised by placing the +declaration within a group. + +As from version 2.43, the numerical date formats (such as +\ics{ddmmyyyydate}) use the command +\begin{definition}[\DescribeMacro{\dateseparator}] +\cs{dateseparator} +\end{definition} +to separate the numbers. So, for example, if you want to hyphens +instead of slashes, you can do: +\begin{verbatim} +\renewcommand{\dateseparator}{-} +\end{verbatim} + +\subsection{ISO format} + +\begin{definition}[\DescribeMacro{\yyyymmdddate}] +\cs{yyyymmdddate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form 2000/03/08. (You can redefine +\ics{dateseparator} to \texttt{-} to change to 2000-03-08.) + +\subsection{\texorpdfstring{\meta{Day} \meta{Month} \meta{Year}}{Day Month Year} formats} + +\begin{definition}[\DescribeMacro{\longdate}] +\cs{longdate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form Wednesday 8\textsuperscript{th} March, +2000 if the package option \pkgopt{dayofweek} is used, or +8\textsuperscript{th} March, 2000 if the package option +\pkgopt{nodayofweek} is used. + +\begin{definition}[\DescribeMacro{\shortdate}] +\cs{shortdate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form Wed 8\textsuperscript{th} Mar, 2000 if +the package option \pkgopt{dayofweek} is used, or +8\textsuperscript{th} Mar, 2000 if the package option +\pkgopt{nodayofweek} is used. + +\begin{definition}[\DescribeMacro{\ddmmyyyydate}] +\cs{ddmmyyyydate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form 08/03/2000. + +\begin{definition}[\DescribeMacro{\dmyyyydate}] +\cs{dmyyyydate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form 8/3/2000. + +\begin{definition}[\DescribeMacro{\ddmmyydate}] +\cs{ddmmyydate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form 08/03/00. + +\begin{definition}[\DescribeMacro{\dmyydate}] +\cs{dmyydate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form 8/3/00. + +\begin{definition}[\DescribeMacro{\textdate}] +\cs{textdate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form: Wednesday the Eighth of March, Two +Thousand if the package option \pkgopt{dayofweek} is used, or Eighth +of March, Two Thousand if the package option \pkgopt{nodayofweek} is +used. Note that \cs{textdate} is defined for use with English, it +won't look right if it is used when another language has been +selected\footnote{in fact, you may get an error from the +\sty{fmtcount} package if you are using a language that it doesn't +support.}. If you want to define a similar command for another +language, you will first need to check that the \sty{fmtcount} +package supports that language. + +\subsection{\texorpdfstring{\meta{Month} \meta{Day} \meta{Year}}{Month Day Year} formats} + +\begin{definition}[\DescribeMacro{\usdate}] +\cs{usdate} +\end{definition} +This declaration will redefine \cs{today} to produce the current +date displayed in the form March 8, 2000. (As \TeX\ and \LaTeX\ do +by default.) + +\begin{definition}[\DescribeMacro{\mmddyyyydate}] +\cs{mmddyyyydate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form 03/08/2000. + +\begin{definition}[\DescribeMacro{\mdyyyydate}] +\cs{mdyyyydate} +\end{definition} +This declaration will redefine \verb"\today" to produce the current +date displayed in the form 3/8/2000. + +\begin{definition}[\DescribeMacro{\mmddyydate}] +\cs{mmddyydate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form 03/08/00. + +\begin{definition}[\DescribeMacro{\mdyydate}] +\cs{mdyydate} +\end{definition} +This declaration will redefine \ics{today} to produce the current +date displayed in the form 3/8/00. + +\subsection{Dates defined by \texorpdfstring{\styfmt{babel}}{babel}} + +In addition to the above, the declarations \cs{date}\meta{lang} are +available for all languages defined either by calling \sty{babel} +prior to \styfmt{datetime} or by passing the language name as an +option to \styfmt{datetime}. See~\sectionref{sec:newdate} if you +want to define your own customised date format. + + \section{Time Commands} + +The current time is displayed using the command +\begin{definition}[\DescribeMacro{\currenttime}] +\cs{currenttime} +\end{definition} + +A specific time can be displayed using the command +\begin{definition}[\DescribeMacro{\formattime}] +\cs{formattime}\marg{hour}\marg{minute}\marg{second} +\end{definition} +where \meta{hour} is a number from~0 to~23, and \meta{minute} and +\meta{second} are numbers from~0 to~59. + +The format can be changed using the declaration +\begin{definition}[\DescribeMacro{\settimeformat}] +\cs{settimeformat}\marg{style} +\end{definition} +where \meta{style} is the name of the +format. Predefined formats are: +\begin{description} +\item[xxivtime] Twenty-four hour time in the form 22:28 (Default) +\item[hhmmsstime] Twenty-four hour time in the form 22:28:00 +\item[ampmtime] Twelve hour time in the form 10:28pm +\item[oclock] Displays the current time as a string, e.g.\ +Twenty-Eight minutes past Ten in the afternoon. +\end{description} + +New time formats can be defined using the command: +\begin{definition}[\DescribeMacro{\newtimeformat}] +\cs{newtimeformat}\marg{name}\marg{format} +\end{definition} +where \meta{name} is the name of the new format (used in +\ics{settimeformat}), and \meta{format} is how to format the time. +Within \meta{format} you can use the counters \ctr{HOUR} (number +of hours after midnight), \ctr{MINUTE} (number of minutes past +the hour), \ctr{SECOND} (number of seconds) \ctr{HOURXII} +(number of hours after midnight/midday), \ctr{TOHOUR} (the next +hour) and \ctr{TOMINUTE} (number of minutes to the next hour), +and the corresponding commands: \ics{THEHOUR}, \ics{THEMINUTE}, +\ics{THESECOND}, \ics{THEHOURXII}, \ics{THETOHOUR} and +\ics{THETOMINUTE}. + +For example, to define a new time format that uses a dot instead of a +colon: +\begin{verbatim} +\newtimeformat{dottime}{\twodigit{\THEHOUR}.\twodigit{\THEMINUTE}} +\end{verbatim} +You then need to switch to this new format before you can use it: +\begin{verbatim} +\settimeformat{dottime} +\currenttime +\end{verbatim} + +As from version 2.43, if you only want to change the separator, +you can simply redefine +\begin{definition}[\DescribeMacro{\timeseparator}] +\cs{timeseparator} +\end{definition} +instead of defining a new time format. For example: +\begin{verbatim} +\renewcommand{\timeseparator}{.} +\end{verbatim} +The \texttt{xxivtime} format will now work like the \texttt{dottime} +format defined above. + + \section{Formating Dates} +\begin{definition}[\DescribeMacro{\pdfdate}] +\cs{pdfdate} +\end{definition} + This command\footnote{thanks to Ulrich Dirr for +asking about this} prints the date in the format required for + PDF files, e.g.\ if the date is 1 May 2004 and time is + 22:02, \verb"\pdfdate" will print 20040501220200. The reason +this date format is separate from all the others is because the +other form doesn't get properly expanded by PDF\TeX. (This +command is defined regardless of whether the package option +\texttt{nodate} is called.) +Example: +\begin{verbatim} +\pdfinfo{ + /Author (Me) + /Title (A Sample Document) + /CreationDate (D:20040501215500) + /ModDate (D:\pdfdate) +} +\end{verbatim} +\textbf{Note} that PDF\TeX\ introduced the new primitive +\cs{pdfcreationdate} in version 1.30.0, so \cs{pdfdate} isn't +required with newer versions of PDF\TeX. (\cs{pdfcreationdate} +is better than \cs{pdfdate} as it also stores the time zone.) + + There are two commands that print the name of the current + month: +\begin{definition}[\DescribeMacro{\monthname}] +\cs{monthname}\oarg{num} +\end{definition} +prints the current month name in full, +e.g.\ August, and +\begin{definition}[\DescribeMacro{\shortmonthname}] +\cs{shortmonthname}\oarg{num} +\end{definition} +prints the abbreviated month name, e.g.\ Aug. Both \cs{monthname} +and \cs{shortmonthname} take an optional argument (a number from 1 +to 12) if the name of a specific month is required. For example, +\verb"\monthname[6]" will produced the output: June. + + The day of the week is computed using the algorithm documented at + \url{http://userpages.wittenburg.edu/bshelburne/Comp150/DayOfWeek.htm}. + This algorithm works for any date between 1\textsuperscript{st} +Jan, 1901 and 31\textsuperscript{st} Dec, 2099. + The following macros display the day of week for a given date: + +\begin{definition}[\DescribeMacro{\dayofweekname}] +\cs{dayofweekname}\marg{day}\marg{month}\marg{year} +\end{definition} +prints the day of week for the specified date. For example, +\begin{verbatim} +\dayofweekname{31}{10}{2002} +\end{verbatim} +will produce the output: Thursday. + +\begin{definition}[\DescribeMacro{\shortdayofweekname}] +\cs{shortdayofweekname}\meta{day}\marg{month}\marg{year} +\end{definition} +prints the abbreviated name for the day of week for the specified +date. For example +\begin{verbatim} +\shortdayofweekname{31}{10}{2002} +\end{verbatim} +will produce the output: Thu. + +\begin{definition}[\DescribeMacro{\ifshowdow}] +\cs{ifshowdow} +\end{definition} +This \TeX\ conditional can be used to determine whether or not the +option \pkgopt{dayofweek} has been passed to the package. For +example: +\begin{verbatim} +\ifshowdow\dayofweekname{31}{10}{2002} \fi +\end{verbatim} +will only display the day of week if the \pkgopt{dayofweek} option +was passed to \styfmt{datetime}. Alternatively, you can use +David~Carlisle's \sty{ifthen} package: +\begin{verbatim} +\ifthenelse{\boolean{showdow}}{\dayofweekname{31}{10}{2002} }{} +\end{verbatim} + +The command +\begin{definition}[\DescribeMacro{\ordinaldate}] +\cs{ordinaldate}\marg{number} +\end{definition} +displays \meta{number} as a date-type ordinal. If the current +language is English, this will simply pass the argument to +\ics{ordinalnum} (defined in the \sty{fmtcount} package), if the +current language is Breton, Welsh or French, a superscript will only +be added if \meta{number} is 1, otherwise only \meta{number} will be +displayed. + +The macro\footnote{Note the name change since version 1.1. The +command name was changed from \cs{thedate} to \cs{formatdate} to +avoid a name clash when using the \sty{seminar} class file.} +\begin{definition}[\DescribeMacro{\formatdate}] +\cs{formatdate}\marg{day}\marg{month}\marg{year} +\end{definition} +formats the specified date according to the current format of +\ics{today}\footnote{To be more precise, \ics{today} is defined to +be \ics{formatdate}\{\cs{day}\}\{\cs{month}\}\{\cs{year}\} where +\ics{longdate} etc change the definition of \cs{formatdate}}. +(Arguments must all be integers.) For example, in combination with +\ics{longdate}, the command +\begin{verbatim} +\formatdate{27}{9}{2004} +\end{verbatim} +will produce the output: Monday 27\textsuperscript{th} September, +2004. + +You can ensure that a number is displayed with at least two digits +using the command +\begin{definition}[\DescribeMacro{\twodigit}] +\cs{twodigit}\marg{num} +\end{definition} + +\section{Defining New Date Formats}\label{sec:newdate} + +New date formats can be defined using the command: +\begin{definition}[\DescribeMacro{\newdateformat}] + \cs{newdateformat}\marg{name}\marg{format} +\end{definition} +where \meta{name} is the name of the new format, and \meta{format} +is how to format the date. Within the argument \meta{format} you can +use the commands \ics{THEDAY}, \ics{THEMONTH} and \ics{THEYEAR} to +represent the relevant day, month and year, or you can use the +counters \ctr{DAY}, \ctr{MONTH} and \ctr{YEAR} if you want to use +\ics{ordinal} etc. Once you have defined the new date format, you +can then switch to it using the declaration \verb'\'\meta{name} +(i.e.\ the name you specified preceded by a backslash), and +subsequent calls to \ics{today} and \ics{formatdate} will use your +new format. + +For example, suppose you want to define a new date format called, +say, \texttt{mydate}, that will typeset the date in the form: +8-3-2002, then you can do: +\begin{verbatim} +\newdateformat{mydate}{\THEDAY-\THEMONTH-\THEYEAR} +\end{verbatim} +\ics{newdateformat} will then define the declaration +\cs{mydate} which can be used to +switch to your new format. In the following example, +two new date formats are defined, and they are then +selected to produce two different formats for the current date: +\begin{verbatim} +\newdateformat{dashdate}{% +\twodigit{\THEDAY}-\twodigit{\THEMONTH}-\THEYEAR} + +\newdateformat{usvardate}{% +\monthname[\THEMONTH] \ordinal{DAY}, \THEYEAR} + +Dash: \dashdate\today. +US: \usvardate\today. +\end{verbatim} +If the current date is, say, 8th March, 2002, the above code will +produce the following: Dash: 08-03-2002. US: March +8\textsuperscript{th}, 2002. + +Note that \ics{THEDAY} etc and \ctr{DAY} etc have no real +meaning outside \ics{newdateformat} (this is why they +are in uppercase). Incidentally, the \texttt{dashdate} format +is not really necessary, as you can achieve this format +using: +\begin{verbatim} +\renewcommand{\dateseparator}{-} +\ddmmyyyydate +\end{verbatim} + +Another note: in the above code, \ics{ordinal} was +used to illustrate the use of the \ctr{DAY} counter. It +is better to use \ics{ordinaldate} instead: +\begin{verbatim} +\newdateformat{usvardate}{% +\monthname[\THEMONTH] \ordinaldate{\THEDAY}, \THEYEAR} +\end{verbatim} + +\section{Saving Dates} + +It is possible to save a date for later use using the command: +\footnote{Thanks to Denis Bitouz\'e for asking about this} +\begin{definition}[\DescribeMacro{\newdate}] +\cs{newdate}\marg{name}\marg{day}\marg{month}\marg{year} +\end{definition} + +This date can later be displayed using the same format as that +used by \ics{formatdate} using the command: +\begin{definition}[\DescribeMacro{\displaydate}] +\cs{displaydate}\marg{name} +\end{definition} + +Individual elements of the date can be extracted using the +commands: +\begin{definition}[\DescribeMacro{\getdateday}] +\cs{getdateday}\marg{name} +\end{definition} +\begin{definition}[\DescribeMacro{\getdatemonth}] +\cs{getdatemonth}\marg{name} +\end{definition} +\begin{definition}[\DescribeMacro{\getdateyear}] +\cs{getdateyear}\marg{name} +\end{definition} + +\section{Predefined Names} + +The following commands are defined by the \styfmt{datetime} +package: + +\begin{tabular}{ll} +\bfseries Command Name & \bfseries Default Value\\ +\ics{dateseparator} & \verb'/'\\ +\ics{timeseparator} & \verb':'\\ +\ics{amname} & \texttt{am}\\ +\ics{pmname} & \texttt{pm}\\ +\ics{amorpmname} & \ics{amname} if morning, otherwise \ics{pmname}\\ +\ics{amstring} & \texttt{in the morning}\\ +\ics{pmstring} & \texttt{in the afternoon}\\ +\ics{amorpmstring} & \ics{amstring} if morning, otherwise +\ics{pmstring}\\ +\ics{halfpast} & \texttt{Half past}\\ +\ics{quarterpast} & \texttt{Quarter past}\\ +\ics{quarterto} & \texttt{Quarter to}\\ +\ics{noon} & \texttt{Noon}\\ +\ics{midnight} & \texttt{Midnight}\\ +\ics{oclockstring} & \texttt{O'Clock} +\end{tabular} + +\section{Package Options} + + The following options may be passed to this package: +\begin{description} +\item[\pkgopt{long}] make \cs{today} produce long date +\item[\pkgopt{short}] make \cs{today} produce short date +\item[\pkgopt{yyyymmdd}] make \cs{today} produce YYYY/MM/DD date +\item[\pkgopt{ddmmyyyy}] make \cs{today} produce DD/MM/YYYY date +\item[\pkgopt{dmyyyy}] make \cs{today} produce D/M/YYYY date +\item[\pkgopt{ddmmyy}] make \cs{today} produce DD/MM/YY date +\item[\pkgopt{dmyy}] make \cs{today} produce D/M/YY date +\item[\pkgopt{text}] make \cs{today} produce text date +\item[\pkgopt{us}] make \cs{today} produce US style date +\item[\pkgopt{mmddyyyy}] make \cs{today} produce MM/DD/YYYY date +\item[\pkgopt{mdyyyy}] make \cs{today} produce M/D/YYYY date +\item[\pkgopt{mmddyy}] make \cs{today} produce MM/DD/YY date +\item[\pkgopt{mdyy}] make \cs{today} produce M/D/YY date +\item[\pkgopt{raise}] make ordinal st,nd,rd,th appear as superscript +\item[\pkgopt{level}] make ordinal st,nd,rd,th appear level with rest of +text +\item[\pkgopt{dayofweek}] make the day of week appear for \ics{longdate}, +\ics{shortdate} + or \ics{textdate} +\item[\pkgopt{nodayofweek}] don't display the day of week. +\item[\pkgopt{hhmmss}] make \cs{currenttime} produce \texttt{hhmmsstime} +format +\item[\pkgopt{24hr}] make \cs{currenttime} produce \texttt{xxivtime} +format +\item[\pkgopt{12hr}] make \cs{currenttime} produce \texttt{ampmtime} +format +\item[\pkgopt{oclock}] make \cs{currenttime} produce \texttt{oclock} +format +\item[\pkgopt{nodate}] Don't redefine \cs{today} or define the month or +day of week commands + (useful if you only want the time commands) +\item[\pkgopt{iso}] as \pkgopt{ddmmyyyy} and \pkgopt{hhmmss} but +also sets date separator to \texttt{-} + and time separator to \texttt{:} + \end{description} + +The default options are: \pkgopt{long}, \pkgopt{raise}, +\pkgopt{dayofweek} and \pkgopt{24hr}. + +\section{Multilingual Support} + +If you use the \sty{ngerman} package, you must use \styfmt{datetime}'s +\pkgopt{ngerman} package option if you want the date displayed +in the same form as \sty{ngerman}. You must also load \sty{ngerman} +\emph{before} you load \styfmt{datetime}. Similarly for the +\sty{german} package. + +If you want to use the \sty{babel} package, you must load +it \emph{before} you load the \styfmt{datetime} package. This +is because the \sty{babel} \cs{date}\meta{lang} commands +redefine \ics{today}, whereas the \sty{datetime} package +redefines \cs{today} to use \ics{formatdate}, and the +date formatting commands (such as \ics{longdate}) redefine +\cs{formatdate} rather than \cs{today}. This ensures +consistent formatting of the dates whether you use \cs{today} or +\cs{formatdate}. Therefore, the \styfmt{datetime} package +has to redefine all the \cs{date}\meta{lang} commands accordingly. +Thus the multilingual date support is mostly limited to that provided +by \sty{babel}. Additional support, such as the day of +week names and abbreviations, are only supplied for those +languages that I know, or that other people have been able to supply +for me. + +As from v2.56, the package options supplied to \styfmt{datetime} +override \sty{babel}'s date format. For example: +\begin{verbatim} +\usepackage[french,spanish]{babel} +\usepackage[ddmmyyyy]{datetime} +\end{verbatim} +will use ddmmyyyy date format regardless of language. Note that +if you use a declaration instead of a package option, for +example: +\begin{verbatim} +\usepackage[french,spanish]{babel} +\usepackage{datetime} +\ddmmyyyydate +\end{verbatim} +the date format will be switched back to \cs{datefrench} or +\cs{datespanish} whenever the language is set. You can use +\begin{definition}[\DescribeMacro{\setdefaultdate}] +\cs{setdefaultdate}\marg{declaration} +\end{definition} +to always use \marg{declaration} whenever the language +is set. For example: +\begin{verbatim} +\setdefaultdate{\ddmmyyyydate} +\end{verbatim} + +The commands \ics{monthname} and \ics{shortmonthname}, +will produce the month name in the current language. +If you want the month name in a specific language, you +can use the command \cs{monthname}\meta{lang}. +For example, \verb"\monthnamefrench[6]" will produce the output: +juin. Note that \ics{textdate} is formatted for English dates, +and won't look right if used with another language setting. If you +want a textual date, the \sty{fmtcount} package (which is +loaded by \styfmt{datetime}) defines some commands which display +a number or ordinal as a word, but it only has very limited +multilingual support. See the \sty{fmtcount} documentation +for further details. + +There is currently only \emph{limited} multilingual support for +\ics{dayofweekname} and \ics{shortdayofweekname} (just +English, French, Portuguese, Spanish and German\footnote{thanks +to Uwe Bieling for supplying the German names}). You can add support +for other languages by defining the commands +\cs{dayofweeknameid}\meta{lang} and +\cs{shortdayofweeknameid}\meta{lang}. Note that these +commands only take \emph{one} argument which should be +a number from~1 to~7 indicating the day of the week. + +You can use the following as templates. Replace +\texttt{english} with the name of your language (as given +by \ics{languagename}) and replace \texttt{Sunday} +etc as appropriate: +\begin{verbatim} +\providecommand*{\dayofweeknameidenglish}[1]{% +\ifcase#1\relax +\or Sunday% +\or Monday% +\or Tuesday% +\or Wednesday% +\or Thursday% +\or Friday% +\or Saturday% +\fi} + +\providecommand*{\shortdayofweeknameidenglish}[1]{% +\ifcase#1\relax +\or Sun% +\or Mon% +\or Tue% +\or Wed% +\or Thu% +\or Fri% +\or Sat% +\fi} +\end{verbatim} +If you want them added to future versions of +\sty{datetime}, please email me the code. + +\section{Registers} + +\TeX\ provides \ics{day}, \ics{month} and \ics{year} registers. In +addition, \styfmt{datetime} provides the registers: +\ics{currenthour}, \ics{currentminute} and \ics{currentsecond}. +Note that old distributions of \TeX\ will always have +\cs{currentsecond} set to zero. + +\section{Configuration File} + +As from Version 2.4, the \styfmt{datetime} package will read in settings +from the configuration file \texttt{datetime.cfg}, if it exists, +which will override the default package options. For example, +suppose you prefer a short date without the day of week by default, +you will need to create a file called \texttt{datetime.cfg} that +contains the line: +\begin{verbatim} +\shortdate\showdowfalse +\end{verbatim} +The file \texttt{datetime.cfg} should then go somewhere on the +\TeX\ path. Now all you need to do is: +\begin{verbatim} +\usepackage{datetime} +\end{verbatim} +without having to specify the \pkgopt{short} and +\pkgopt{nodayofweek} options. + +You can also use this file to define and set your own date +styles. For example, you could create +a configuration file that has the following lines: +\begin{verbatim} +\newdateformat{dashdate}{\twodigit{\THEDAY}-\twodigit{\THEMONTH}-\THEYEAR} +\dashdate +\end{verbatim} +Whenever you use the \styfmt{datetime} package, it will now +use this format by default. + +\section{LaTeX2HTML styles} + +\changes{2.43}{2005/02/25}{Added LaTeX2HTML support}% +\changes{2.44}{2005/03/03}{Fixed minor bugs in Perl scripts} +Version 2.43 and above of the \styfmt{datetime} bundle +supplies the LaTeX2HTML style file \texttt{datetime.perl}. +This file should be placed in a +directory searched by LaTeX2HTML. The following limitations +apply to the LaTeX2HTML styles: + +\begin{itemize} +\item The configuration file \texttt{datetime.cfg} +is currently ignored. You can however +do: +\begin{verbatim} +\usepackage{datetime} +\html{\input{datetime.cfg}} +\end{verbatim} +This, I agree, is an unpleasant cludge. + +\item The commands \cs{monthname}\meta{language} are not +implemented. + +\item Some of the languages are not implemented. + +\item The package option \pkgopt{nodate} is not implemented. + +\end{itemize} + +\section{Troubleshooting} + +There is a \sty{datetime} FAQ available at: +\url{http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/} + +\StopEventually{\phantomsection +\addcontentsline{toc}{section}{Index}\PrintIndex +} + +\end{document} diff --git a/Master/texmf-dist/doc/latex/datetime/datetime.pdf b/Master/texmf-dist/doc/latex/datetime/datetime.pdf Binary files differindex 2ee9bfcedfc..0114d08f723 100644 --- a/Master/texmf-dist/doc/latex/datetime/datetime.pdf +++ b/Master/texmf-dist/doc/latex/datetime/datetime.pdf diff --git a/Master/texmf-dist/doc/latex/datetime/dt-lang.tex b/Master/texmf-dist/doc/latex/datetime/dt-lang.tex deleted file mode 100644 index 39666f3d9b7..00000000000 --- a/Master/texmf-dist/doc/latex/datetime/dt-lang.tex +++ /dev/null @@ -1,22 +0,0 @@ -\documentclass{article} - -\usepackage[T1]{fontenc} -\usepackage[french,spanish,english]{babel} -\usepackage{datetime} % Date will be language-dependent -%\usepackage[iso]{datetime} % Date will be displayed the same for all languages - -\begin{document} -English: \today - -\selectlanguage{french} -French: \today - -\selectlanguage{spanish} -Spanish: \today - -\begin{otherlanguage}{french} -French: \today -\end{otherlanguage} - -\today -\end{document} diff --git a/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex b/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex deleted file mode 100644 index d39e0e0f31f..00000000000 --- a/Master/texmf-dist/doc/latex/datetime/dt-sampl.tex +++ /dev/null @@ -1,130 +0,0 @@ -\documentclass[a4paper]{article} - -\usepackage{ifpdf} -\usepackage{datetime} - - -\ifpdf -\pdfinfo{ - /CreationDate (D:20040501215500Z) - /ModDate (D:\pdfcreationdate) -} -\fi - -\padzeroes[8] - -\newdateformat{dashdate}{\twodigit{\THEDAY}-\twodigit{\THEMONTH}-\THEYEAR} -\newdateformat{usvardate}{\monthname[\THEMONTH]~\ordinaldate{\THEDAY}, \THEYEAR} -\newdateformat{mydate}{\ifshowdow \dayofweekname{\THEDAY}{\THEMONTH}{\THEYEAR} \fi -\THEDAY\ \monthname[\THEMONTH], \THEYEAR} -\newdateformat{yyyymmdd}{\THEYEAR\twodigit{\THEMONTH}\twodigit{\THEDAY}} -\newdateformat{ukvardate}{\THEDAY\ \monthname[\THEMONTH]\ \THEYEAR} - -\newtimeformat{dottime}{\twodigit{\THEHOUR}.\twodigit{\THEMINUTE}} -\newtimeformat{dashtime12}{\THEHOURXII-\twodigit{\THEMINUTE}} -\newtimeformat{hhmm}{\twodigit{\THEHOUR}\twodigit{\THEMINUTE}} - -\begin{document} - -\section{Date Formats} -Default: \today. - -\begin{tabular}{ll} -\bfseries Declaration & \bfseries\verb|\today|\\ -\verb|\longdate| & \longdate\today\\ -\verb|\shortdate| & \shortdate\today\\ -\verb|\yyyymmdddate| & \yyyymmdddate\today\\ -\verb|\ddmmyyyydate| & \ddmmyyyydate\today\\ -\verb|\dmyyyydate| & \dmyyyydate\today\\ -\verb|\ddmmyydate| & \ddmmyydate\today\\ -\verb|\dmyydate| & \dmyydate\today\\ -\verb|\textdate| & \textdate\today\\ -\verb|\usdate| & \usdate\today\\ -\verb|\mmddyyyydate| & \mmddyyyydate\today\\ -\verb|\mdyyyydate| & \mdyyyydate\today\\ -\verb|\mmddyydate| & \mmddyydate\today\\ -\verb|\mdyydate| & \mdyydate\today -\end{tabular} - -\section{Time Formats} -Default: \currenttime. - -\begin{tabular}{@{\ttfamily}ll} -\bfseries\rmfamily Format & \bfseries \verb|\currenttime|\\ -hhmmsstime & \settimeformat{hhmmsstime}\currenttime\\ -xxivtime & \settimeformat{xxivtime}\currenttime\\ -ampmtime & \settimeformat{ampmtime}\currenttime\\ -oclock & \settimeformat{oclock}\currenttime -\end{tabular} - -\section{Specific Date:} - -\begin{tabular}{ll} -\bfseries Format & \bfseries \verb|\formatdate{1}{3}{2009}|\\ -\verb|\longdate| & \longdate\formatdate{1}{3}{2000}\\ -\verb|\shortdate| & \shortdate\formatdate{1}{3}{2000}\\ -\verb|\yyyymmdddate| & \yyyymmdddate\formatdate{1}{3}{2000}\\ -\verb|\ddmmyyyydate| & \ddmmyyyydate\formatdate{1}{3}{2000}\\ -\verb|\dmyyyydate| & \dmyyyydate\formatdate{1}{3}{2000}\\ -\verb|\ddmmyydate| & \ddmmyydate\formatdate{1}{3}{2000}\\ -\verb|\dmyydate| & \dmyydate\formatdate{1}{3}{2000}\\ -\verb|\textdate| & \textdate\formatdate{1}{3}{2000}\\ -\verb|\usdate| & \usdate\formatdate{1}{3}{2000}\\ -\verb|\mmddyyyydate| & \mmddyyyydate\formatdate{1}{3}{2000}\\ -\verb|\mdyyyydate| & \mdyyyydate\formatdate{1}{3}{2000}\\ -\verb|\mmddyydate| & \mmddyydate\formatdate{1}{3}{2000}\\ -\verb|\mdyydate| & \mdyydate\formatdate{1}{3}{2000} -\end{tabular} - -\section{Specific Time} - -\begin{tabular}{@{\ttfamily}ll} -\bfseries\rmfamily Format & \bfseries \verb|\formattime{15}{45}{00}|\\ -hhmmsstime & \settimeformat{hhmmsstime}\formattime{15}{45}{00}\\ -xxivtime & \settimeformat{xxivtime}\formattime{15}{45}{00}\\ -ampmtime & \settimeformat{ampmtime}\formattime{15}{45}{00}\\ -oclock & \settimeformat{oclock}\formattime{15}{45}{00} -\end{tabular} - -\vskip\baselineskip\noindent -\begin{tabular}{@{\ttfamily}ll} -\bfseries\rmfamily Format & \bfseries \verb|\formattime{0}{0}{0}|\\ -hhmmsstime & \settimeformat{hhmmsstime}\formattime{0}{0}{0}\\ -xxivtime & \settimeformat{xxivtime}\formattime{0}{0}{0}\\ -ampmtime & \settimeformat{ampmtime}\formattime{0}{0}{0}\\ -oclock & \settimeformat{oclock}\formattime{0}{0}{0} -\end{tabular} - -\vskip\baselineskip\noindent -\begin{tabular}{@{\ttfamily}ll} -\bfseries\rmfamily Format & \bfseries \verb|\formattime{12}{0}{0}|\\ -hhmmsstime & \settimeformat{hhmmsstime}\formattime{12}{0}{0}\\ -xxivtime & \settimeformat{xxivtime}\formattime{12}{0}{0}\\ -ampmtime & \settimeformat{ampmtime}\formattime{12}{0}{0}\\ -oclock & \settimeformat{oclock}\formattime{12}{0}{0} -\end{tabular} - -\section{Defining New Dates} - -\begin{tabular}{ll} -\verb|\dashdate| & \dashdate\today\\ -\verb|\usvardate| & \usvardate\today\\ -\verb|\ukvardate| & \ukvardate\today\\ -\verb|\mydate| & \mydate\today\\ -\verb|\yyyymmdd| & \yyyymmdd\today\\ -\verb|\dashdate| & \dashdate\formatdate{8}{3}{2000}\\ -\verb|\usvardate| & \usvardate\formatdate{8}{3}{2000}\\ -\verb|\mydate| & \mydate\formatdate{8}{3}{2000}\\ -\verb|\yyyymmdd| & \yyyymmdd\formatdate{8}{3}{2000} -\end{tabular} - -\section{Defining New Times} - -\begin{tabular}{@{\ttfamily}ll} -\bfseries\rmfamily Format & \bfseries \verb|\currenttime|\\ -dottime & \settimeformat{dottime}\currenttime\\ -dashtime12 & \settimeformat{dashtime12}\currenttime\\ -hhmm & \settimeformat{hhmm}\currenttime -\end{tabular} - -\end{document} diff --git a/Master/texmf-dist/source/latex/datetime/datetime.dtx b/Master/texmf-dist/source/latex/datetime/datetime.dtx index e4f211f1572..8173974405b 100644 --- a/Master/texmf-dist/source/latex/datetime/datetime.dtx +++ b/Master/texmf-dist/source/latex/datetime/datetime.dtx @@ -1,13 +1,18 @@ %\iffalse % datetime.dtx generated using makedtx version 0.94b (c) Nicola Talbot % Command line args: +% -macrocode "datetime.perl" +% -setambles ".*\.perl=>\nopreamble\nopostamble" +% -comment "datetime.perl" +% -comment "dt-.+\.tex" % -src "(.+)\.(sty)=>\1.\2" % -src "(.+)\.(def)=>\1.\2" +% -src "(dt-.+)\.(tex)=>\1.\2" +% -src "datetime.perl\Z=>datetime.perl" % -doc "datetime-manual.tex" % -author "Nicola Talbot" -% -dir "source" % datetime -% Created on 2010/2/6 14:17 +% Created on 2010/9/21 10:02 %\fi %\iffalse %<*package> @@ -34,18 +39,18 @@ % \fi % \iffalse %<*driver> -\documentclass{ltxdoc} +\documentclass{nlctdoc} \usepackage[colorlinks, bookmarks, bookmarksopen, - pdfauthor={N.L.C. Talbot}, + hyperindex=false, + pdfauthor={Nicola L.C. Talbot}, pdftitle={datetime.sty: A Date and Time Package}, pdfkeywords={date,time,LaTeX}]{hyperref} -\newcommand{\sty}[1]{\textsf{#1}} \begin{document} \DocInput{datetime.dtx} \end{document} @@ -54,46 +59,46 @@ %\RecordChanges %\OnlyDescription % -%\title{datetime.sty v2.57: Formatting Current Date and -%Time} +%\title{datetime.sty v2.58: +%Formatting Current Date and Time} % \author{Nicola L. C. Talbot\\[10pt] % School of Computing Sciences\\ % University of East Anglia\\ % Norwich. NR4 7TJ.\\ % United Kingdom.\\ % \url{http://theoval.cmp.uea.ac.uk/~nlct/}} -% \date{6th Feb 2010} +% \date{2010-09-21} % \maketitle % \tableofcontents % \section{Introduction} %\changes{1.0}{2000/08/08}{First release} %\changes{1.01}{2000/09/18}{Documentation added} -%The \sty{datetime} package is a \LaTeXe\ package that -%provides various different formats for \cs{today}, +%The \styfmt{datetime} package is a \LaTeXe\ package that +%provides various different formats for \ics{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 \texttt{nodate} to the package. +%the option \pkgopt{nodate} to the package. %\changes{2.3}{2004/05/01}{nodate package option added} % %\changes{2.41}{2004/10/22}{split package into two files: %datetime.sty and fmtcount.sty} -%Since version 2.4, the \sty{datetime} package has been -%separated into two packages: \sty{datetime} and +%Since version 2.4, the \styfmt{datetime} package has been +%separated into two packages: \styfmt{datetime} and %\sty{fmtcount}. When I originally created this package, -%I defined the commands, \cs{ordinal} etc which could be used +%I defined the commands, \ics{ordinal} etc which could be used %in the definition of \cs{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 \sty{fmtcount} package is now distributed separately -%from the \sty{datetime} package, and will also need to +%from the \styfmt{datetime} package, and will also need to %be installed. % %\changes{2.42}{2004/11/01}{made package compatible with babel} -%As from version 2.42, the \sty{datetime} package is now +%As from version 2.42, the \styfmt{datetime} package is now %compatible with \sty{babel}, however you must load the -%\sty{datetime} package \emph{after} the \sty{babel} package. +%\styfmt{datetime} package \emph{after} the \sty{babel} package. %For example: %\begin{verbatim} %\usepackage[francais]{babel} @@ -102,111 +107,148 @@ % % \section{Predefined Date Formats} % There are various declarations that change the effect of -%\cs{today}. The change can be localised by placing the +%\ics{today}. The change can be localised by placing the %declaration within a group. % +%As from version 2.43, the numerical date formats (such as +%\ics{ddmmyyyydate}) use the command +%\begin{definition}[\DescribeMacro{\dateseparator}] +%\cs{dateseparator} +%\end{definition} +%to separate the numbers. So, for example, if you want to hyphens +%instead of slashes, you can do: +%\begin{verbatim} +%\renewcommand{\dateseparator}{-} +%\end{verbatim} % -% \vspace{10pt}\noindent ISO format: -% \DescribeMacro{\yyyymmdddate} -% The declaration \verb"\yyyymmdddate" will redefine -%\verb"\today" to produce -% the current date displayed in the form 2000/03/08. (You can -%redefine \cs{dateseparator} to \texttt{-} to change to -%2000-03-08.) +%\subsection{ISO format} % -% \vspace{10pt}\noindent \meta{Day} \meta{Month} \meta{Year} formats:\\ -% \noindent\DescribeMacro{\longdate} -% The declaration \verb"\longdate" will redefine -%\verb"\today" to produce the current date displayed in the form -%Wednesday 8\textsuperscript{th} March, 2000 -% if the package option \texttt{dayofweek} is used, or +%\begin{definition}[\DescribeMacro{\yyyymmdddate}] +%\cs{yyyymmdddate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form 2000/03/08. (You can redefine +%\ics{dateseparator} to \texttt{-} to change to 2000-03-08.) +% +%\subsection{\texorpdfstring{\meta{Day} \meta{Month} \meta{Year}}{Day Month Year} formats} +% +%\begin{definition}[\DescribeMacro{\longdate}] +%\cs{longdate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form Wednesday 8\textsuperscript{th} March, +%2000 if the package option \pkgopt{dayofweek} is used, or %8\textsuperscript{th} March, 2000 if the package option -% \texttt{nodayofweek} is used.\\ -% \DescribeMacro{\shortdate} -% The declaration \verb"\shortdate" will redefine -%\verb"\today" to produce the current date displayed in the form -%Wed 8\textsuperscript{th} Mar, 2000 if the package option -%\texttt{dayofweek} is used, or 8\textsuperscript{th} Mar, 2000 -%if the package option \texttt{nodayofweek} is used.\\ -% \DescribeMacro{\ddmmyyyydate} -% The declaration \verb"\ddmmyyyydate" will redefine -%\verb"\today" to produce -% the current date displayed in the form 08/03/2000\\ -% \DescribeMacro{\dmyyyydate} -% The declaration \verb"\dmyyyydate" will redefine -%\verb"\today" to produce -% the current date displayed in the form 8/3/2000\\ -% \DescribeMacro{\ddmmyydate} -% The declaration \verb"\ddmmyydate" will redefine -%\verb"\today" to produce -% the current date displayed in the form 08/03/00\\ -% \DescribeMacro{\dmyydate} -% The declaration \verb"\dmyydate" will redefine -%\verb"\today" to produce -% the current date displayed in the form 8/3/00\\ -% \DescribeMacro{\textdate} -% The declaration \verb"\textdate" will redefine -%\verb"\today" to produce the current date displayed in the form: -%Wednesday the Eighth of March, Two Thousand if the package option -%\texttt{dayofweek} is used, or Eighth of March, Two Thousand if -%the package option \texttt{nodayofweek} is used. Note that -%\verb"\textdate" is defined for use with English, it won't -%look right if it is used when another language has been +%\pkgopt{nodayofweek} is used. +% +%\begin{definition}[\DescribeMacro{\shortdate}] +%\cs{shortdate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form Wed 8\textsuperscript{th} Mar, 2000 if +%the package option \pkgopt{dayofweek} is used, or +%8\textsuperscript{th} Mar, 2000 if the package option +%\pkgopt{nodayofweek} is used. +% +%\begin{definition}[\DescribeMacro{\ddmmyyyydate}] +%\cs{ddmmyyyydate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form 08/03/2000. +% +%\begin{definition}[\DescribeMacro{\dmyyyydate}] +%\cs{dmyyyydate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form 8/3/2000. +% +%\begin{definition}[\DescribeMacro{\ddmmyydate}] +%\cs{ddmmyydate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form 08/03/00. +% +%\begin{definition}[\DescribeMacro{\dmyydate}] +%\cs{dmyydate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form 8/3/00. +% +%\begin{definition}[\DescribeMacro{\textdate}] +%\cs{textdate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form: Wednesday the Eighth of March, Two +%Thousand if the package option \pkgopt{dayofweek} is used, or Eighth +%of March, Two Thousand if the package option \pkgopt{nodayofweek} is +%used. Note that \cs{textdate} is defined for use with English, it +%won't look right if it is used when another language has been %selected\footnote{in fact, you may get an error from the -%\sty{fmtcount} package if you are using a language that it -%doesn't support.}. If you want to define a similar command for -%another language, you will first need to check that the -%\sty{fmtcount} package supports that language. +%\sty{fmtcount} package if you are using a language that it doesn't +%support.}. If you want to define a similar command for another +%language, you will first need to check that the \sty{fmtcount} +%package supports that language. % -% \vspace{10pt}\noindent \meta{Month} \meta{Day} \meta{Year} formats:\\ -% \DescribeMacro{\usdate} -% The declaration \verb"\usdate" will redefine -%\verb"\today" to produce the current date displayed in the form -%March 8, 2000. (As \TeX\ and \LaTeX\ do by default.)\\ -% \DescribeMacro{\mmddyyyydate} -% The declaration \verb"\mmddyyyydate" will redefine -%\verb"\today" to produce the current date displayed in the form -%03/08/2000\\ -% \DescribeMacro{\mdyyyydate} -% The declaration \verb"\mdyyyydate" will redefine -%\verb"\today" to produce the current date displayed in the form -%3/8/2000\\ -% \DescribeMacro{\mmddyydate} -% The declaration \verb"\mmddyydate" will redefine -%\verb"\today" to produce the current date displayed in the form -%03/08/00\\ -% \DescribeMacro{\mdyydate} -% The declaration \verb"\mdyydate" will redefine -%\verb"\today" to produce the current date displayed in the form -%3/8/00 +%\subsection{\texorpdfstring{\meta{Month} \meta{Day} \meta{Year}}{Month Day Year} formats} % -%\vspace{10pt}\noindent In addition, the declarations \verb"\date"\meta{lang} are -%available for all languages defined either by -%calling \sty{babel} prior to \sty{datetime} or by -%passing the language name as an option to \sty{datetime}. -%See~\autoref{sec:newdate} if you want to define your own customised date format. +%\begin{definition}[\DescribeMacro{\usdate}] +%\cs{usdate} +%\end{definition} +%This declaration will redefine \cs{today} to produce the current +%date displayed in the form March 8, 2000. (As \TeX\ and \LaTeX\ do +%by default.) % -%As from version 2.43, the numerical date formats (such as -%\verb"\ddmmyyyydate") use the command -%\verb"\dateseparator" to separate the numbers. So, for example, -%if you want to hyphens instead of slashes, you can do: -%\begin{verbatim} -%\renewcommand{\dateseparator}{-} -%\end{verbatim} +%\begin{definition}[\DescribeMacro{\mmddyyyydate}] +%\cs{mmddyyyydate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form 03/08/2000. +% +%\begin{definition}[\DescribeMacro{\mdyyyydate}] +%\cs{mdyyyydate} +%\end{definition} +%This declaration will redefine \verb"\today" to produce the current +%date displayed in the form 3/8/2000. +% +%\begin{definition}[\DescribeMacro{\mmddyydate}] +%\cs{mmddyydate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form 03/08/00. +% +%\begin{definition}[\DescribeMacro{\mdyydate}] +%\cs{mdyydate} +%\end{definition} +%This declaration will redefine \ics{today} to produce the current +%date displayed in the form 3/8/00. +% +%\subsection{Dates defined by \texorpdfstring{\styfmt{babel}}{babel}} +% +%In addition to the above, the declarations \cs{date}\meta{lang} are +%available for all languages defined either by calling \sty{babel} +%prior to \styfmt{datetime} or by passing the language name as an +%option to \styfmt{datetime}. See~\sectionref{sec:newdate} if you +%want to define your own customised date format. % % \section{Time Commands} -%\DescribeMacro{\currenttime} -% The current time is displayed using the command -%\verb"\currenttime". % -%\DescribeMacro{\formattime}A specific time can be displayed using -%the command \cs{formattime}\marg{hour}\marg{minute}\marg{second}, where -%\meta{hour} is a number from~0 to~23, and \meta{minute} and +%The current time is displayed using the command +%\begin{definition}[\DescribeMacro{\currenttime}] +%\cs{currenttime} +%\end{definition} +% +%A specific time can be displayed using the command +%\begin{definition}[\DescribeMacro{\formattime}] +%\cs{formattime}\marg{hour}\marg{minute}\marg{second} +%\end{definition} +%where \meta{hour} is a number from~0 to~23, and \meta{minute} and %\meta{second} are numbers from~0 to~59. % -%\DescribeMacro{\settimeformat} -% The format can be changed using the declaration -%\cs{settimeformat}\marg{style}, where \meta{style} is the name of the +%The format can be changed using the declaration +%\begin{definition}[\DescribeMacro{\settimeformat}] +%\cs{settimeformat}\marg{style} +%\end{definition} +%where \meta{style} is the name of the %format. Predefined formats are: %\begin{description} %\item[xxivtime] Twenty-four hour time in the form 22:28 (Default) @@ -216,19 +258,20 @@ %Twenty-Eight minutes past Ten in the afternoon. %\end{description} % -% \DescribeMacro{\newtimeformat} -% New time formats can be defined using the command:\\[5pt] -%\cs{newtimeformat}\marg{name}\marg{format}\\[5pt] -% where \meta{name} is the name of the new format (used in -%\cs{settimeformat}), and \meta{format} is how to format the -%time. Within \meta{format} you can use the counters -%\texttt{HOUR} (number of hours after midnight), \texttt{MINUTE} -%(number of minutes past the hour), \texttt{SECOND} (number of -%seconds) \texttt{HOURXII} (number of -%hours after midnight/midday), \texttt{TOHOUR} (the next hour) and -%\texttt{TOMINUTE} (number of minutes to the next hour), and the -%corresponding commands: \cs{THEHOUR}, \cs{THEMINUTE}, \cs{THESECOND}, -%\cs{THEHOURXII}, \cs{THETOHOUR} and \cs{THETOMINUTE}. +%New time formats can be defined using the command: +%\begin{definition}[\DescribeMacro{\newtimeformat}] +%\cs{newtimeformat}\marg{name}\marg{format} +%\end{definition} +%where \meta{name} is the name of the new format (used in +%\ics{settimeformat}), and \meta{format} is how to format the time. +%Within \meta{format} you can use the counters \ctr{HOUR} (number +%of hours after midnight), \ctr{MINUTE} (number of minutes past +%the hour), \ctr{SECOND} (number of seconds) \ctr{HOURXII} +%(number of hours after midnight/midday), \ctr{TOHOUR} (the next +%hour) and \ctr{TOMINUTE} (number of minutes to the next hour), +%and the corresponding commands: \ics{THEHOUR}, \ics{THEMINUTE}, +%\ics{THESECOND}, \ics{THEHOURXII}, \ics{THETOHOUR} and +%\ics{THETOMINUTE}. % %For example, to define a new time format that uses a dot instead of a %colon: @@ -242,7 +285,10 @@ %\end{verbatim} % %As from version 2.43, if you only want to change the separator, -%you can simply redefine \cs{timeseparator} +%you can simply redefine +%\begin{definition}[\DescribeMacro{\timeseparator}] +%\cs{timeseparator} +%\end{definition} %instead of defining a new time format. For example: %\begin{verbatim} %\renewcommand{\timeseparator}{.} @@ -251,8 +297,10 @@ %format defined above. % % \section{Formating Dates} -% \DescribeMacro{\pdfdate} -% The command \verb"\pdfdate"\footnote{thanks to Ulrich Dirr for +%\begin{definition}[\DescribeMacro{\pdfdate}] +%\cs{pdfdate} +%\end{definition} +% This command\footnote{thanks to Ulrich Dirr for %asking about this} prints the date in the format required for % PDF files, e.g.\ if the date is 1 May 2004 and time is % 22:02, \verb"\pdfdate" will print 20040501220200. The reason @@ -276,15 +324,18 @@ % % There are two commands that print the name of the current % month: -% \DescribeMacro{\monthname} -% \verb"\monthname" prints the current month name in full, +%\begin{definition}[\DescribeMacro{\monthname}] +%\cs{monthname}\oarg{num} +%\end{definition} +%prints the current month name in full, %e.g.\ August, and -% \DescribeMacro{\shortmonthname} -% \verb"\shortmonthname" prints the abbreviated month name, -%e.g.\ Aug. Both \verb"\monthname" and -%\verb"\shortmonthname" take an optional argument (a number from -%1 to 12) if the name of a specific month is required. For -%example, \verb"\monthname[6]" will produced the output: June. +%\begin{definition}[\DescribeMacro{\shortmonthname}] +%\cs{shortmonthname}\oarg{num} +%\end{definition} +%prints the abbreviated month name, e.g.\ Aug. Both \cs{monthname} +%and \cs{shortmonthname} take an optional argument (a number from 1 +%to 12) if the name of a specific month is required. For example, +%\verb"\monthname[6]" will produced the output: June. % % The day of the week is computed using the algorithm documented at % \url{http://userpages.wittenburg.edu/bshelburne/Comp150/DayOfWeek.htm}. @@ -292,100 +343,104 @@ %Jan, 1901 and 31\textsuperscript{st} Dec, 2099. % The following macros display the day of week for a given date: % -% \noindent\DescribeMacro{\dayofweekname} -%\cs{dayofweekname}\marg{day}\marg{month}\marg{year} prints the -% day of week for the specified date. For example, -%\verb"\dayofweekname{31}{10}{2002}" -% will produce the output: Thursday.\\ -% \DescribeMacro{\shortdayofweekname} -%\cs{shortdayofweekname}\meta{day}\marg{month}\marg{year} prints the -%abbreviated name for the -% day of week for the specified date. For example\\ -% \verb"\shortdayofweekname{31}{10}{2002}"\\ -% will produce the output: Thu. +%\begin{definition}[\DescribeMacro{\dayofweekname}] +%\cs{dayofweekname}\marg{day}\marg{month}\marg{year} +%\end{definition} +%prints the day of week for the specified date. For example, +%\begin{verbatim} +%\dayofweekname{31}{10}{2002} +%\end{verbatim} +%will produce the output: Thursday. % -% \noindent\DescribeMacro{\ifshowdow} -% The \TeX\ conditional \verb"\ifshowdow" can be used to determine -% whether or not the option \texttt{dayofweek} has been passed to -%the package. -% For example: +%\begin{definition}[\DescribeMacro{\shortdayofweekname}] +%\cs{shortdayofweekname}\meta{day}\marg{month}\marg{year} +%\end{definition} +%prints the abbreviated name for the day of week for the specified +%date. For example +%\begin{verbatim} +%\shortdayofweekname{31}{10}{2002} +%\end{verbatim} +%will produce the output: Thu. +% +%\begin{definition}[\DescribeMacro{\ifshowdow}] +%\cs{ifshowdow} +%\end{definition} +%This \TeX\ conditional can be used to determine whether or not the +%option \pkgopt{dayofweek} has been passed to the package. For +%example: %\begin{verbatim} %\ifshowdow\dayofweekname{31}{10}{2002} \fi %\end{verbatim} -% will only display the day of week if the \texttt{dayofweek} -%option was passed to \sty{datetime}. -% Alternatively, you can use David~Carlisle's \sty{ifthen} -%package: +%will only display the day of week if the \pkgopt{dayofweek} option +%was passed to \styfmt{datetime}. Alternatively, you can use +%David~Carlisle's \sty{ifthen} package: %\begin{verbatim} %\ifthenelse{\boolean{showdow}}{\dayofweekname{31}{10}{2002} }{} %\end{verbatim} % -%\noindent\DescribeMacro{\ordinaldate} -%The command \cs{ordinaldate}\marg{number} -%displays \meta{number} as a date-type ordinal. If the -%current language is English, this will simply pass -%the argument to \cs{ordinalnum} (defined in the -%\sty{fmtcount} package), -%if the current language is Breton, Welsh or French, a superscript -%will only be added if \meta{number} is 1, otherwise only -%\meta{number} will be displayed. +%The command +%\begin{definition}[\DescribeMacro{\ordinaldate}] +%\cs{ordinaldate}\marg{number} +%\end{definition} +%displays \meta{number} as a date-type ordinal. If the current +%language is English, this will simply pass the argument to +%\ics{ordinalnum} (defined in the \sty{fmtcount} package), if the +%current language is Breton, Welsh or French, a superscript will only +%be added if \meta{number} is 1, otherwise only \meta{number} will be +%displayed. % -% \DescribeMacro{\formatdate} -%The macro -%\cs{formatdate}\marg{day}\marg{month}\marg{year}\footnote{Note the -%name change since version 1.1. The command name was changed from -%\cs{thedate} to \cs{formatdate} to avoid a name clash when using the -%\sty{seminar} class file.} formats the specified date according to -%the current format of \cs{today}\footnote{To be more precise, -%\cs{today} is defined to be -%\cs{formatdate\{\cs{day}\}\{\cs{month}\}\{\cs{year}\}} where -%\cs{longdate} etc change the definition of \cs{formatdate}}. +%The macro\footnote{Note the name change since version 1.1. The +%command name was changed from \cs{thedate} to \cs{formatdate} to +%avoid a name clash when using the \sty{seminar} class file.} +%\begin{definition}[\DescribeMacro{\formatdate}] +%\cs{formatdate}\marg{day}\marg{month}\marg{year} +%\end{definition} +%formats the specified date according to the current format of +%\ics{today}\footnote{To be more precise, \ics{today} is defined to +%be \ics{formatdate}\{\cs{day}\}\{\cs{month}\}\{\cs{year}\} where +%\ics{longdate} etc change the definition of \cs{formatdate}}. %(Arguments must all be integers.) For example, in combination with -%\verb"\longdate", the command +%\ics{longdate}, the command %\begin{verbatim} %\formatdate{27}{9}{2004} %\end{verbatim} %will produce the output: Monday 27\textsuperscript{th} September, %2004. % -% \DescribeMacro{\twodigit} -% You can ensure that a number is displayed with at least two -%digits by using the command -%\cs{twodigit}\marg{num}. -% This is of use if you want to define your own date or time -%formats. +%You can ensure that a number is displayed with at least two digits +%using the command +%\begin{definition}[\DescribeMacro{\twodigit}] +%\cs{twodigit}\marg{num} +%\end{definition} % -% \section{Defining New Date Formats}\label{sec:newdate} +%\section{Defining New Date Formats}\label{sec:newdate} % -% \DescribeMacro{\newdateformat} -% New date formats can be defined using the command:\\[5pt] -% \cs{newdateformat}\marg{name}\marg{format}\\[5pt] -% where \meta{name} is the name of the new format, and -% \meta{format} is how to format the date. Within the -% argument \meta{format} you can use the commands \cs{THEDAY}, -%\cs{THEMONTH} -% and \cs{THEYEAR} to represent the relevant day, month and -%year, or you can use the counters -% \texttt{DAY}, \texttt{MONTH} and \texttt{YEAR} if you want to -%use \cs{ordinal} etc. Once you have defined the -% new date format, you can then switch to it using the declaration -%\verb'\'\meta{name} -% (i.e.\ the name you specified preceded by a backslash), and -% subsequent calls to \cs{today} and \cs{formatdate} will -%use your new format. +%New date formats can be defined using the command: +%\begin{definition}[\DescribeMacro{\newdateformat}] +% \cs{newdateformat}\marg{name}\marg{format} +%\end{definition} +%where \meta{name} is the name of the new format, and \meta{format} +%is how to format the date. Within the argument \meta{format} you can +%use the commands \ics{THEDAY}, \ics{THEMONTH} and \ics{THEYEAR} to +%represent the relevant day, month and year, or you can use the +%counters \ctr{DAY}, \ctr{MONTH} and \ctr{YEAR} if you want to use +%\ics{ordinal} etc. Once you have defined the new date format, you +%can then switch to it using the declaration \verb'\'\meta{name} +%(i.e.\ the name you specified preceded by a backslash), and +%subsequent calls to \ics{today} and \ics{formatdate} will use your +%new format. % -% For example, suppose you want to define a new date format called, -% say, \texttt{mydate}, that will typeset the date in the form: -%8-3-2002, -% then you can do: +%For example, suppose you want to define a new date format called, +%say, \texttt{mydate}, that will typeset the date in the form: +%8-3-2002, then you can do: %\begin{verbatim} %\newdateformat{mydate}{\THEDAY-\THEMONTH-\THEYEAR} %\end{verbatim} -%\cs{newdateformat} will then define the declaration +%\ics{newdateformat} will then define the declaration %\cs{mydate} which can be used to -% switch to your new format. In the following example, -% two new date formats are defined, and they are then -% selected to produce two different formats for the current date: +%switch to your new format. In the following example, +%two new date formats are defined, and they are then +%selected to produce two different formats for the current date: %\begin{verbatim} %\newdateformat{dashdate}{% %\twodigit{\THEDAY}-\twodigit{\THEMONTH}-\THEYEAR} @@ -396,13 +451,12 @@ %Dash: \dashdate\today. %US: \usvardate\today. %\end{verbatim} -%If the current date is, say, 8th March, 2002, the above code will -% produce the following: -%Dash: 08-03-2002. -%US: March 8\textsuperscript{th}, 2002. +%If the current date is, say, 8th March, 2002, the above code will +%produce the following: Dash: 08-03-2002. US: March +%8\textsuperscript{th}, 2002. % -%Note that \cs{THEDAY} etc and \texttt{DAY} etc have no real -%meaning outside \cs{newdateformat} (this is why they +%Note that \ics{THEDAY} etc and \ctr{DAY} etc have no real +%meaning outside \ics{newdateformat} (this is why they %are in uppercase). Incidentally, the \texttt{dashdate} format %is not really necessary, as you can achieve this format %using: @@ -411,9 +465,9 @@ %\ddmmyyyydate %\end{verbatim} % -%Another note: in the above code, \cs{ordinal} was -%used to illustrate the use of the \texttt{DAY} counter. It -%is better to use \cs{ordinaldate} instead: +%Another note: in the above code, \ics{ordinal} was +%used to illustrate the use of the \ctr{DAY} counter. It +%is better to use \ics{ordinaldate} instead: %\begin{verbatim} %\newdateformat{usvardate}{% %\monthname[\THEMONTH] \ordinaldate{\THEDAY}, \THEYEAR} @@ -422,107 +476,113 @@ %\section{Saving Dates} % %It is possible to save a date for later use using the command: -%\footnote{Thanks to Denis Bitouz\'e for asking about this}\par -%\DescribeMacro{\newdate} +%\footnote{Thanks to Denis Bitouz\'e for asking about this} +%\begin{definition}[\DescribeMacro{\newdate}] %\cs{newdate}\marg{name}\marg{day}\marg{month}\marg{year} +%\end{definition} % %This date can later be displayed using the same format as that -%used by \cs{formatdate} using the command:\par -%\DescribeMacro{\displaydate} +%used by \ics{formatdate} using the command: +%\begin{definition}[\DescribeMacro{\displaydate}] %\cs{displaydate}\marg{name} +%\end{definition} % %Individual elements of the date can be extracted using the -%commands:\par -%\DescribeMacro{\getdateday} -%\cs{getdateday}\marg{name}\par -%\DescribeMacro{\getdatemonth} -%\cs{getdatemonth}\marg{name}\par -%\DescribeMacro{\getdateyear} +%commands: +%\begin{definition}[\DescribeMacro{\getdateday}] +%\cs{getdateday}\marg{name} +%\end{definition} +%\begin{definition}[\DescribeMacro{\getdatemonth}] +%\cs{getdatemonth}\marg{name} +%\end{definition} +%\begin{definition}[\DescribeMacro{\getdateyear}] %\cs{getdateyear}\marg{name} +%\end{definition} % %\section{Predefined Names} % -%The following commands are defined by the \sty{datetime} +%The following commands are defined by the \styfmt{datetime} %package: % %\begin{tabular}{ll} %\bfseries Command Name & \bfseries Default Value\\ -%\cs{dateseparator} & \verb'/'\\ -%\cs{timeseparator} & \verb':'\\ -%\cs{amname} & \texttt{am}\\ -%\cs{pmname} & \texttt{pm}\\ -%\cs{amorpmname} & \cs{amname} if morning, otherwise \cs{pmname}\\ -%\cs{amstring} & \texttt{in the morning}\\ -%\cs{pmstring} & \texttt{in the afternoon}\\ -%\cs{amorpmstring} & \cs{amstring} if morning, otherwise -%\cs{pmstring}\\ -%\cs{halfpast} & \texttt{Half past}\\ -%\cs{quarterpast} & \texttt{Quarter past}\\ -%\cs{quarterto} & \texttt{Quarter to}\\ -%\cs{noon} & \texttt{Noon}\\ -%\cs{midnight} & \texttt{Midnight}\\ -%\cs{oclockstring} & \texttt{O'Clock} +%\ics{dateseparator} & \verb'/'\\ +%\ics{timeseparator} & \verb':'\\ +%\ics{amname} & \texttt{am}\\ +%\ics{pmname} & \texttt{pm}\\ +%\ics{amorpmname} & \ics{amname} if morning, otherwise \ics{pmname}\\ +%\ics{amstring} & \texttt{in the morning}\\ +%\ics{pmstring} & \texttt{in the afternoon}\\ +%\ics{amorpmstring} & \ics{amstring} if morning, otherwise +%\ics{pmstring}\\ +%\ics{halfpast} & \texttt{Half past}\\ +%\ics{quarterpast} & \texttt{Quarter past}\\ +%\ics{quarterto} & \texttt{Quarter to}\\ +%\ics{noon} & \texttt{Noon}\\ +%\ics{midnight} & \texttt{Midnight}\\ +%\ics{oclockstring} & \texttt{O'Clock} %\end{tabular} % -% \section{Package Options} +%\section{Package Options} % -% The following options may be passed to this package:\\[10pt] -% \begin{tabular}{@{\ttfamily}ll} -% long & make \cs{today} produce long date\\ -% short & make \cs{today} produce short date\\ -% yyyymmdd & make \cs{today} produce YYYY/MM/DD date\\ -% ddmmyyyy & make \cs{today} produce DD/MM/YYYY date\\ -% dmyyyy & make \cs{today} produce D/M/YYYY date\\ -% ddmmyy & make \cs{today} produce DD/MM/YY date\\ -% dmyy & make \cs{today} produce D/M/YY date\\ -% text & make \cs{today} produce text date\\ -% us & make \cs{today} produce US style date\\ -% mmddyyyy & make \cs{today} produce MM/DD/YYYY date\\ -% mdyyyy & make \cs{today} produce M/D/YYYY date\\ -% mmddyy & make \cs{today} produce MM/DD/YY date\\ -% mdyy & make \cs{today} produce M/D/YY date\\ -% raise & make ordinal st,nd,rd,th appear as superscript\\ -% level & make ordinal st,nd,rd,th appear level with rest of -%text\\ -% dayofweek & make the day of week appear for \cs{longdate}, -%\cs{shortdate} \\ -% & or \cs{textdate}\\ -% nodayofweek & don't display the day of week.\\ -% hhmmss & make \cs{currenttime} produce \texttt{hhmmsstime} -%format\\ -% 24hr & make \cs{currenttime} produce \texttt{xxivtime} -%format\\ -% 12hr & make \cs{currenttime} produce \texttt{ampmtime} -%format\\ -% oclock & make \cs{currenttime} produce \texttt{oclock} -%format\\ -% nodate & Don't redefine \cs{today} or define the month or -%day of week commands\\ -% & (useful if you only want the time commands) \\ -% iso & as ddmmyyyy and hhmmss but also sets date separator to -\\ -%& and time separator to : -% \end{tabular} +% The following options may be passed to this package: +%\begin{description} +%\item[\pkgopt{long}] make \cs{today} produce long date +%\item[\pkgopt{short}] make \cs{today} produce short date +%\item[\pkgopt{yyyymmdd}] make \cs{today} produce YYYY/MM/DD date +%\item[\pkgopt{ddmmyyyy}] make \cs{today} produce DD/MM/YYYY date +%\item[\pkgopt{dmyyyy}] make \cs{today} produce D/M/YYYY date +%\item[\pkgopt{ddmmyy}] make \cs{today} produce DD/MM/YY date +%\item[\pkgopt{dmyy}] make \cs{today} produce D/M/YY date +%\item[\pkgopt{text}] make \cs{today} produce text date +%\item[\pkgopt{us}] make \cs{today} produce US style date +%\item[\pkgopt{mmddyyyy}] make \cs{today} produce MM/DD/YYYY date +%\item[\pkgopt{mdyyyy}] make \cs{today} produce M/D/YYYY date +%\item[\pkgopt{mmddyy}] make \cs{today} produce MM/DD/YY date +%\item[\pkgopt{mdyy}] make \cs{today} produce M/D/YY date +%\item[\pkgopt{raise}] make ordinal st,nd,rd,th appear as superscript +%\item[\pkgopt{level}] make ordinal st,nd,rd,th appear level with rest of +%text +%\item[\pkgopt{dayofweek}] make the day of week appear for \ics{longdate}, +%\ics{shortdate} +% or \ics{textdate} +%\item[\pkgopt{nodayofweek}] don't display the day of week. +%\item[\pkgopt{hhmmss}] make \cs{currenttime} produce \texttt{hhmmsstime} +%format +%\item[\pkgopt{24hr}] make \cs{currenttime} produce \texttt{xxivtime} +%format +%\item[\pkgopt{12hr}] make \cs{currenttime} produce \texttt{ampmtime} +%format +%\item[\pkgopt{oclock}] make \cs{currenttime} produce \texttt{oclock} +%format +%\item[\pkgopt{nodate}] Don't redefine \cs{today} or define the month or +%day of week commands +% (useful if you only want the time commands) +%\item[\pkgopt{iso}] as \pkgopt{ddmmyyyy} and \pkgopt{hhmmss} but +%also sets date separator to \texttt{-} +% and time separator to \texttt{:} +% \end{description} % -%The default options are: \texttt{long}, \texttt{raise}, -%\texttt{dayofweek} and \texttt{24hr}. +%The default options are: \pkgopt{long}, \pkgopt{raise}, +%\pkgopt{dayofweek} and \pkgopt{24hr}. % %\section{Multilingual Support} % -%If you use the \sty{ngerman} package, you must use \sty{datetime}'s -%\texttt{ngerman} package option if you want the date displayed +%If you use the \sty{ngerman} package, you must use \styfmt{datetime}'s +%\pkgopt{ngerman} package option if you want the date displayed %in the same form as \sty{ngerman}. You must also load \sty{ngerman} -%\emph{before} you load \sty{datetime}. Similarly for the +%\emph{before} you load \styfmt{datetime}. Similarly for the %\sty{german} package. % %If you want to use the \sty{babel} package, you must load -%it \emph{before} you load the \sty{datetime} package. This +%it \emph{before} you load the \styfmt{datetime} package. This %is because the \sty{babel} \cs{date}\meta{lang} commands -%redefine \cs{today}, whereas the \sty{datetime} package -%redefines \cs{today} to use \cs{formatdate}, and the -%date formatting commands (such as \cs{longdate}) redefine +%redefine \ics{today}, whereas the \sty{datetime} package +%redefines \cs{today} to use \ics{formatdate}, and the +%date formatting commands (such as \ics{longdate}) redefine %\cs{formatdate} rather than \cs{today}. This ensures %consistent formatting of the dates whether you use \cs{today} or -%\cs{formatdate}. Therefore, the \sty{datetime} package +%\cs{formatdate}. Therefore, the \styfmt{datetime} package %has to redefine all the \cs{date}\meta{lang} commands accordingly. %Thus the multilingual date support is mostly limited to that provided %by \sty{babel}. Additional support, such as the day of @@ -530,7 +590,7 @@ %languages that I know, or that other people have been able to supply %for me. % -%As from v2.56, the package options supplied to \sty{datetime} +%As from v2.56, the package options supplied to \styfmt{datetime} %override \sty{babel}'s date format. For example: %\begin{verbatim} %\usepackage[french,spanish]{babel} @@ -545,29 +605,31 @@ %\ddmmyyyydate %\end{verbatim} %the date format will be switched back to \cs{datefrench} or -%\cs{datespanish} whenever the language is set. You can use\par -%\noindent\DescribeMacro{\setdefaultdate}\cs{setdefaultdate}\marg{declaration}\par -%\noindent to always use \marg{declaration} whenever the language +%\cs{datespanish} whenever the language is set. You can use +%\begin{definition}[\DescribeMacro{\setdefaultdate}] +%\cs{setdefaultdate}\marg{declaration} +%\end{definition} +%to always use \marg{declaration} whenever the language %is set. For example: %\begin{verbatim} %\setdefaultdate{\ddmmyyyydate} %\end{verbatim} % -%The commands \cs{monthname} and \cs{shortmonthname}, +%The commands \ics{monthname} and \ics{shortmonthname}, %will produce the month name in the current language. %If you want the month name in a specific language, you %can use the command \cs{monthname}\meta{lang}. %For example, \verb"\monthnamefrench[6]" will produce the output: -%juin. Note that \cs{textdate} is formatted for English dates, +%juin. Note that \ics{textdate} is formatted for English dates, %and won't look right if used with another language setting. If you %want a textual date, the \sty{fmtcount} package (which is -%loaded by \sty{datetime}) defines some commands which display +%loaded by \styfmt{datetime}) defines some commands which display %a number or ordinal as a word, but it only has very limited %multilingual support. See the \sty{fmtcount} documentation %for further details. % %There is currently only \emph{limited} multilingual support for -%\cs{dayofweekname} and \cs{shortdayofweekname} (just +%\ics{dayofweekname} and \ics{shortdayofweekname} (just %English, French, Portuguese, Spanish and German\footnote{thanks %to Uwe Bieling for supplying the German names}). You can add support %for other languages by defining the commands @@ -578,7 +640,7 @@ % %You can use the following as templates. Replace %\texttt{english} with the name of your language (as given -%by \cs{languagename}) and replace \texttt{Sunday} +%by \ics{languagename}) and replace \texttt{Sunday} %etc as appropriate: %\begin{verbatim} %\providecommand*{\dayofweeknameidenglish}[1]{% @@ -608,15 +670,15 @@ % %\section{Registers} % -%\TeX\ provides \cs{day}, \cs{month}, \cs{year} registers. In -%addition, \sty{datetime} provides the registers: -%\cs{currenthour}, \cs{currentminute} and \cs{currentsecond}. +%\TeX\ provides \ics{day}, \ics{month} and \ics{year} registers. In +%addition, \styfmt{datetime} provides the registers: +%\ics{currenthour}, \ics{currentminute} and \ics{currentsecond}. %Note that old distributions of \TeX\ will always have %\cs{currentsecond} set to zero. % %\section{Configuration File} % -%As from Version 2.4, the \sty{datetime} package will read in settings +%As from Version 2.4, the \styfmt{datetime} package will read in settings %from the configuration file \texttt{datetime.cfg}, if it exists, %which will override the default package options. For example, %suppose you prefer a short date without the day of week by default, @@ -630,8 +692,8 @@ %\begin{verbatim} %\usepackage{datetime} %\end{verbatim} -%without having to specify the \texttt{short} and -%\texttt{nodayofweek} options. +%without having to specify the \pkgopt{short} and +%\pkgopt{nodayofweek} options. % %You can also use this file to define and set your own date %styles. For example, you could create @@ -640,14 +702,14 @@ %\newdateformat{dashdate}{\twodigit{\THEDAY}-\twodigit{\THEMONTH}-\THEYEAR} %\dashdate %\end{verbatim} -%Whenever you use the \sty{datetime} package, it will now +%Whenever you use the \styfmt{datetime} package, it will now %use this format by default. % %\section{LaTeX2HTML styles} % %\changes{2.43}{2005/02/25}{Added LaTeX2HTML support}% %\changes{2.44}{2005/03/03}{Fixed minor bugs in Perl scripts} -%Version 2.43 and above of the \sty{datetime} bundle +%Version 2.43 and above of the \styfmt{datetime} bundle %supplies the LaTeX2HTML style file \texttt{datetime.perl}. %This file should be placed in a %directory searched by LaTeX2HTML. The following limitations @@ -655,9 +717,7 @@ % %\begin{itemize} %\item The configuration file \texttt{datetime.cfg} -%is currently ignored. (This is because -%I can't work out the correct code to do this. If you -%know how to do this, please let me know.) You can however +%is currently ignored. You can however %do: %\begin{verbatim} %\usepackage{datetime} @@ -670,7 +730,7 @@ % %\item Some of the languages are not implemented. % -%\item The package option \texttt{nodate} is not implemented. +%\item The package option \pkgopt{nodate} is not implemented. % %\end{itemize} % @@ -679,9 +739,12 @@ %There is a \sty{datetime} FAQ available at: %\url{http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/} % +%\StopEventually{\phantomsection +%\addcontentsline{toc}{section}{Index}\PrintIndex +%} +% % % -%\StopEventually{} %\section{The Code} %\iffalse % \begin{macrocode} @@ -692,7 +755,7 @@ % This section documents the code for \texttt{datetime.sty} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{datetime}[2010/02/06 v2.57 Date Time Package] +\ProvidesPackage{datetime}[2010/09/21 v2.58 Date Time Package] % \end{macrocode} %\texttt{fmtcount.sty} needs to be loaded here as it defines the % command \cs{fmtord} which may be redefined later: @@ -1499,55 +1562,80 @@ settings}} \renewcommand*{\timeseparator}{:}% } % \end{macrocode} +% +%\begin{macro}{\loadDTdef} +%\changes{2.58}{2010/09/21}{new} +% Load the datetime language definition file for the given language +% \begin{macrocode} +\newcommand*{\loadDTdef}[1]{% +% \end{macrocode} +% Check whether the file has already been loaded. +% \begin{macrocode} + \@ifundefined{ver@dt-#1.def}% + {% + \InputIfFileExists{dt-#1.def}% + {}% + {% + \PackageWarning{datetime}{Can't find datetime language + definition file for `#1'}% + }% + }% +% \end{macrocode} +% File already loaded, so do nothing. +% \begin{macrocode} + {}% +} +% \end{macrocode} +%\end{macro} % Multilingual support. These package options shouldn't really be % needed if babel has already been loaded. % \begin{macrocode} -\DeclareOption{austrian}{\input{dt-austrian.def}} -\DeclareOption{american}{\input{dt-american.def}} -\DeclareOption{bahasa}{\input{dt-bahasa.def}} -\DeclareOption{basque}{\input{dt-basque.def}} -\DeclareOption{breton}{\input{dt-breton.def}} -\DeclareOption{british}{\input{dt-british.def}} -\DeclareOption{bulgarian}{\input{dt-bulgarian.def}} -\DeclareOption{catalan}{\input{dt-catalan.def}} -\DeclareOption{croatian}{\input{dt-croatian.def}} -\DeclareOption{czech}{\input{dt-czech.def}} -\DeclareOption{danish}{\input{dt-danish.def}} -\DeclareOption{dutch}{\input{dt-dutch.def}} -\DeclareOption{esperanto}{\input{dt-esperanto.def}} -\DeclareOption{estonian}{\input{dt-estonian.def}} -\DeclareOption{finnish}{\input{dt-finnish.def}} -\DeclareOption{french}{\input{dt-french.def}} -\DeclareOption{galician}{\input{dt-galician.def}} -\DeclareOption{german}{\input{dt-german.def}\dategerman} -\DeclareOption{greek}{\input{dt-greek.def}} -\DeclareOption{hebrew}{\input{dt-hebrew.def}} -\DeclareOption{icelandic}{\input{dt-icelandic.def}} -\DeclareOption{irish}{\input{dt-irish.def}} -\DeclareOption{italian}{\input{dt-italian.def}} -\DeclareOption{latin}{\input{dt-latin.def}} -\DeclareOption{lsorbian}{\input{dt-lsorbian.def}} -\DeclareOption{magyar}{\input{dt-magyar.def}} -\DeclareOption{naustrian}{\input{dt-naustrian.def}} -\DeclareOption{ngerman}{\input{dt-ngerman.def}\datengerman} -\DeclareOption{norsk}{\input{dt-norsk.def}} -\DeclareOption{polish}{\input{dt-polish.def}} -\DeclareOption{portuges}{\input{dt-portuges.def}} -\DeclareOption{romanian}{\input{dt-romanian.def}} -\DeclareOption{russian}{\input{dt-russian.def}} -\DeclareOption{samin}{\input{dt-samin.def}} -\DeclareOption{scottish}{\input{dt-scottish.def}} -\DeclareOption{serbian}{\input{dt-serbian.def}} -\DeclareOption{slovak}{\input{dt-slovak.def}} -\DeclareOption{slovene}{\input{dt-slovene.def}} -\DeclareOption{spanish}{\input{dt-spanish.def}} -\DeclareOption{swedish}{\input{dt-swedish.def}} -\DeclareOption{turkish}{\input{dt-turkish.def}} -\DeclareOption{ukraineb}{\input{dt-ukraineb.def}} -\DeclareOption{usorbian}{\input{dt-usorbian.def}} -\DeclareOption{UKenglish}{\input{dt-UKenglish.def}} -\DeclareOption{USenglish}{\input{dt-USenglish.def}} -\DeclareOption{welsh}{\input{dt-welsh.def}} +\DeclareOption{austrian}{\loadDTdef{austrian}} +\DeclareOption{american}{\loadDTdef{american}} +\DeclareOption{bahasa}{\loadDTdef{bahasa}} +\DeclareOption{basque}{\loadDTdef{basque}} +\DeclareOption{breton}{\loadDTdef{breton}} +\DeclareOption{british}{\loadDTdef{british}} +\DeclareOption{bulgarian}{\loadDTdef{bulgarian}} +\DeclareOption{catalan}{\loadDTdef{catalan}} +\DeclareOption{croatian}{\loadDTdef{croatian}} +\DeclareOption{czech}{\loadDTdef{czech}} +\DeclareOption{danish}{\loadDTdef{danish}} +\DeclareOption{dutch}{\loadDTdef{dutch}} +\DeclareOption{esperanto}{\loadDTdef{esperanto}} +\DeclareOption{estonian}{\loadDTdef{estonian}} +\DeclareOption{finnish}{\loadDTdef{finnish}} +\DeclareOption{french}{\loadDTdef{french}} +\DeclareOption{galician}{\loadDTdef{galician}} +\DeclareOption{german}{\loadDTdef{german}\dategerman} +\DeclareOption{greek}{\loadDTdef{greek}} +\DeclareOption{hebrew}{\loadDTdef{hebrew}} +\DeclareOption{icelandic}{\loadDTdef{icelandic}} +\DeclareOption{irish}{\loadDTdef{irish}} +\DeclareOption{italian}{\loadDTdef{italian}} +\DeclareOption{latin}{\loadDTdef{latin}} +\DeclareOption{lsorbian}{\loadDTdef{lsorbian}} +\DeclareOption{magyar}{\loadDTdef{magyar}} +\DeclareOption{naustrian}{\loadDTdef{naustrian}} +\DeclareOption{ngerman}{\loadDTdef{ngerman}\datengerman} +\DeclareOption{norsk}{\loadDTdef{norsk}} +\DeclareOption{polish}{\loadDTdef{polish}} +\DeclareOption{portuges}{\loadDTdef{portuges}} +\DeclareOption{romanian}{\loadDTdef{romanian}} +\DeclareOption{russian}{\loadDTdef{russian}} +\DeclareOption{samin}{\loadDTdef{samin}} +\DeclareOption{scottish}{\loadDTdef{scottish}} +\DeclareOption{serbian}{\loadDTdef{serbian}} +\DeclareOption{slovak}{\loadDTdef{slovak}} +\DeclareOption{slovene}{\loadDTdef{slovene}} +\DeclareOption{spanish}{\loadDTdef{spanish}} +\DeclareOption{swedish}{\loadDTdef{swedish}} +\DeclareOption{turkish}{\loadDTdef{turkish}} +\DeclareOption{ukraineb}{\loadDTdef{ukraineb}} +\DeclareOption{usorbian}{\loadDTdef{usorbian}} +\DeclareOption{UKenglish}{\loadDTdef{UKenglish}} +\DeclareOption{USenglish}{\loadDTdef{USenglish}} +\DeclareOption{welsh}{\loadDTdef{welsh}} % \end{macrocode} % Process package options % \begin{macrocode} @@ -1911,52 +1999,52 @@ language '\languagename', defaulting to long version}}% \if@dt@nodate \else \@ifundefined{dateenglish}{}{\let\dateenglish\longdate} -\@ifundefined{dateUKenglish}{}{\input{dt-UKenglish.def}} -\@ifundefined{dateUSenglish}{}{\input{dt-USenglish.def}} -\@ifundefined{datebritish}{}{\input{dt-british.def}} -\@ifundefined{dateamerican}{}{\input{dt-american.def}} -\@ifundefined{dateaustrian}{}{\input{dt-austrian.def}} -\@ifundefined{datebahasa}{}{\input{dt-bahasa.def}} -\@ifundefined{datebasque}{}{\input{dt-basque.def}} -\@ifundefined{datebreton}{}{\input{dt-breton.def}} -\@ifundefined{datebulgarian}{}{\input{dt-bulgarian.def}} -\@ifundefined{datecatalan}{}{\input{dt-catalan.def}} -\@ifundefined{datecroatian}{}{\input{dt-croatian.def}} -\@ifundefined{dateczech}{}{\input{dt-czech.def}} -\@ifundefined{datedanish}{}{\input{dt-danish.def}} -\@ifundefined{datedutch}{}{\input{dt-dutch.def}} -\@ifundefined{dateesperanto}{}{\input{dt-esperanto.def}} -\@ifundefined{dateestonian}{}{\input{dt-estonian.def}} -\@ifundefined{datefinnish}{}{\input{dt-finnish.def}} -\@ifundefined{datefrench}{}{\input{dt-french.def}} -\@ifundefined{dategalician}{}{\input{dt-galician.def}} -\@ifundefined{dategerman}{}{\input{dt-german.def}} -\@ifundefined{dategreek}{}{\input{dt-greek.def}} -\@ifundefined{datehebrew}{}{\input{dt-hebrew.def}} -\@ifundefined{dateicelandic}{}{\input{dt-icelandic.def}} -\@ifundefined{dateirish}{}{\input{dt-irish.def}} -\@ifundefined{dateitalian}{}{\input{dt-italian.def}} -\@ifundefined{datelatin}{}{\input{dt-latin.def}} -\@ifundefined{datelsorbian}{}{\input{dt-lsorbian.def}} -\@ifundefined{datemagyar}{}{\input{dt-magyar.def}} -\@ifundefined{datenaustrian}{}{\input{dt-naustrian.def}} -\@ifundefined{datengerman}{}{\input{dt-ngerman.def}} -\@ifundefined{datenorsk}{}{\input{dt-norsk.def}} -\@ifundefined{datepolish}{}{\input{dt-polish.def}} -\@ifundefined{dateportuges}{}{\input{dt-portuges.def}} -\@ifundefined{dateromanian}{}{\input{dt-romanian.def}} -\@ifundefined{daterussian}{}{\input{dt-russian.def}} -\@ifundefined{datesamin}{}{\input{dt-samin.def}} -\@ifundefined{datescottish}{}{\input{dt-scottish.def}} -\@ifundefined{dateserbian}{}{\input{dt-serbian.def}} -\@ifundefined{dateslovak}{}{\input{dt-slovak.def}} -\@ifundefined{dateslovene}{}{\input{dt-slovene.def}} -\@ifundefined{datespanish}{}{\input{dt-spanish.def}} -\@ifundefined{dateswedish}{}{\input{dt-swedish.def}} -\@ifundefined{dateturkish}{}{\input{dt-turkish.def}} -\@ifundefined{dateukraineb}{}{\input{dt-ukraineb.def}} -\@ifundefined{dateusorbian}{}{\input{dt-usorbian.def}} -\@ifundefined{datewelsh}{}{\input{dt-welsh.def}} +\@ifundefined{dateUKenglish}{}{\loadDTdef{UKenglish}} +\@ifundefined{dateUSenglish}{}{\loadDTdef{USenglish}} +\@ifundefined{datebritish}{}{\loadDTdef{british}} +\@ifundefined{dateamerican}{}{\loadDTdef{american}} +\@ifundefined{dateaustrian}{}{\loadDTdef{austrian}} +\@ifundefined{datebahasa}{}{\loadDTdef{bahasa}} +\@ifundefined{datebasque}{}{\loadDTdef{basque}} +\@ifundefined{datebreton}{}{\loadDTdef{breton}} +\@ifundefined{datebulgarian}{}{\loadDTdef{bulgarian}} +\@ifundefined{datecatalan}{}{\loadDTdef{catalan}} +\@ifundefined{datecroatian}{}{\loadDTdef{croatian}} +\@ifundefined{dateczech}{}{\loadDTdef{czech}} +\@ifundefined{datedanish}{}{\loadDTdef{danish}} +\@ifundefined{datedutch}{}{\loadDTdef{dutch}} +\@ifundefined{dateesperanto}{}{\loadDTdef{esperanto}} +\@ifundefined{dateestonian}{}{\loadDTdef{estonian}} +\@ifundefined{datefinnish}{}{\loadDTdef{finnish}} +\@ifundefined{datefrench}{}{\loadDTdef{french}} +\@ifundefined{dategalician}{}{\loadDTdef{galician}} +\@ifundefined{dategerman}{}{\loadDTdef{german}} +\@ifundefined{dategreek}{}{\loadDTdef{greek}} +\@ifundefined{datehebrew}{}{\loadDTdef{hebrew}} +\@ifundefined{dateicelandic}{}{\loadDTdef{icelandic}} +\@ifundefined{dateirish}{}{\loadDTdef{irish}} +\@ifundefined{dateitalian}{}{\loadDTdef{italian}} +\@ifundefined{datelatin}{}{\loadDTdef{latin}} +\@ifundefined{datelsorbian}{}{\loadDTdef{lsorbian}} +\@ifundefined{datemagyar}{}{\loadDTdef{magyar}} +\@ifundefined{datenaustrian}{}{\loadDTdef{naustrian}} +\@ifundefined{datengerman}{}{\loadDTdef{ngerman}} +\@ifundefined{datenorsk}{}{\loadDTdef{norsk}} +\@ifundefined{datepolish}{}{\loadDTdef{polish}} +\@ifundefined{dateportuges}{}{\loadDTdef{portuges}} +\@ifundefined{dateromanian}{}{\loadDTdef{romanian}} +\@ifundefined{daterussian}{}{\loadDTdef{russian}} +\@ifundefined{datesamin}{}{\loadDTdef{samin}} +\@ifundefined{datescottish}{}{\loadDTdef{scottish}} +\@ifundefined{dateserbian}{}{\loadDTdef{serbian}} +\@ifundefined{dateslovak}{}{\loadDTdef{slovak}} +\@ifundefined{dateslovene}{}{\loadDTdef{slovene}} +\@ifundefined{datespanish}{}{\loadDTdef{spanish}} +\@ifundefined{dateswedish}{}{\loadDTdef{swedish}} +\@ifundefined{dateturkish}{}{\loadDTdef{turkish}} +\@ifundefined{dateukraineb}{}{\loadDTdef{ukraineb}} +\@ifundefined{dateusorbian}{}{\loadDTdef{usorbian}} +\@ifundefined{datewelsh}{}{\loadDTdef{welsh}} \fi % \end{macrocode} % @@ -2033,20 +2121,42 @@ language '\languagename', defaulting to long version}}% %<*dt-american.def> % \end{macrocode} %\fi +%\subsection{Compatibility with Babel (Language definition files)} %\subsubsection{american} % Identify file % \begin{macrocode} -\ProvidesFile{dt-american.def}[2007/06/11] +\ProvidesFile{dt-american.def}[2010/09/21] % \end{macrocode} +%\begin{macro}{\dateamerican} +% \begin{macrocode} \let\dateamerican\usdate - +% \end{macrocode} +%\end{macro} +%\begin{macro}{\monthnameamerican} +% \begin{macrocode} \let\monthnameamerican\monthnameenglish +% \end{macrocode} +%\end{macro} +%\begin{macro}{\shortmonthnameamerican} +% \begin{macrocode} \let\shortmonthnameamerican\shortmonthnameenglish - +% \end{macrocode} +%\end{macro} +%\begin{macro}{\dayofweeknameidamerican} +% \begin{macrocode} \let\dayofweeknameidamerican\dayofweeknameidenglish +% \end{macrocode} +%\end{macro} +%\begin{macro}{\shortdayofweeknameamerican} +% \begin{macrocode} \let\shortdayofweeknameidamerican\shortdayofweeknameidenglish - -\newcommand*{\ordinaldateamerican}[1]{#1} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\ordinaldateamerican} +% \begin{macrocode} +\providecommand*{\ordinaldateamerican}[1]{#1} +% \end{macrocode} +%\end{macro} %\iffalse % \begin{macrocode} %</dt-american.def> @@ -2057,13 +2167,13 @@ language '\languagename', defaulting to long version}}% %<*dt-austrian.def> % \end{macrocode} %\fi -%\subsection{Compatibility with Babel (Language definition files)} %\subsubsection{Austrian} % Identify file % \begin{macrocode} \ProvidesFile{dt-austrian.def}[2004/10/31] % \end{macrocode} % Define month names. +%\begin{macro}{\monthnameaustrian} % \begin{macrocode} \providecommand{\monthnameaustrian}[1][\month]{% \@orgargctr=#1\relax @@ -2087,13 +2197,16 @@ Month numbers should go from 1 to 12}% Month numbers should go from 1 (janvier) to 12 (decembre)}% \fi} % \end{macrocode} +%\end{macro} % (Re)Define declaration to switch to this format. +%\begin{macro}{\dateaustrian} % \begin{macrocode} \DeclareRobustCommand*\dateaustrian{% \renewcommand{\formatdate}[3]{% \@day=##1\relax\@month=##2\relax\@year=##3\relax \number\@day.~\monthnameaustrian[\@month]\space\number\@year}} % \end{macrocode} +%\end{macro} %\iffalse % \begin{macrocode} %</dt-austrian.def> @@ -2248,12 +2361,12 @@ Month numbers should go from 1 (urtarrilaren) to 12 (abenduaren)}% %\subsubsection{Breton} % Identify file % \begin{macrocode} -\ProvidesFile{dt-breton.def}[2004/10/31] +\ProvidesFile{dt-breton.def}[2010/09/21] % \end{macrocode} %\begin{macro}{\ordinaldatebreton} % Breton version: % \begin{macrocode} -\newcommand*{\ordinaldatebreton}[1]{% +\providecommand*{\ordinaldatebreton}[1]{% #1\ifnum#1=1\/\textsuperscript{a\~n}\fi} % \end{macrocode} %\end{macro} @@ -2331,15 +2444,36 @@ Month numbers should go from 1 (Genver) to 12 (Kerzu)}% % \begin{macrocode} \ProvidesFile{dt-british.def}[2007/06/15] % \end{macrocode} +%\begin{macro}{\datebritish} +% \begin{macrocode} \let\datebritish\longdate - +% \end{macrocode} +%\end{macro} +%\begin{macro}{\monthnamebritish} +% \begin{macrocode} \let\monthnamebritish\monthnameenglish +% \end{macrocode} +%\end{macro} +%\begin{macro}{\shortmonthnamebritish} +% \begin{macrocode} \let\shortmonthnamebritish\shortmonthnameenglish - +% \end{macrocode} +%\end{macro} +%\begin{macro}{\dayofweeknameidbritish} +% \begin{macrocode} \let\dayofweeknameidbritish\dayofweeknameidenglish +% \end{macrocode} +%\end{macro} +%\begin{macro}{\shortdayofweekidbritish} +% \begin{macrocode} \let\shortdayofweeknameidbritish\shortdayofweeknameidenglish - +% \end{macrocode} +%\end{macro} +%\begin{macro}{\ordinaldatebritish} +% \begin{macrocode} \let\ordinaldatebritish\ordinaldateenglish +% \end{macrocode} +%\end{macro} %\iffalse % \begin{macrocode} %</dt-british.def> @@ -2870,12 +3004,12 @@ Month numbers should go from 1 to 12}% %\subsubsection{French} % Identify file % \begin{macrocode} -\ProvidesFile{dt-french.def}[2004/10/31] +\ProvidesFile{dt-french.def}[2010/09/21] % \end{macrocode} %\begin{macro}{\ordinaldatefrench} % French: % \begin{macrocode} -\newcommand*{\ordinaldatefrench}[1]{% +\providecommand*{\ordinaldatefrench}[1]{% #1\ifnum#1=1\ier\fi} % \end{macrocode} %\end{macro} @@ -3043,7 +3177,8 @@ Month numbers should go from 1 (janvier) to 12 (decembre)}% \or Freitag% \or Samstag% \fi} - +% \end{macrocode} +% \begin{macrocode} \providecommand{\shortdayofweeknameidgerman}[1]{% \ifcase#1\relax \or So% @@ -3238,37 +3373,12 @@ Month numbers should go from 1 to 12}% %<*dt-italian.def> % \end{macrocode} %\fi -%% -%% This is file `dt-italian.def', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% datetime.dtx (with options: `dt-italian.def,package') -%% Copyright (C) 2005 Nicola Talbot, all rights reserved. -%% If you modify this file, you must change its name first. -%% You are NOT ALLOWED to distribute this file alone. You are NOT -%% ALLOWED to take money for the distribution or use of either this -%% file or a changed version, except for a nominal charge for copying -%% etc. -%% \CharacterTable -%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z -%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z -%% Digits \0\1\2\3\4\5\6\7\8\9 -%% Exclamation \! Double quote \" Hash (number) \# -%% Dollar \$ Percent \% Ampersand \& -%% Acute accent \' Left paren \( Right paren \) -%% Asterisk \* Plus \+ Comma \, -%% Minus \- Point \. Solidus \/ -%% Colon \: Semicolon \; Less than \< -%% Equals \= Greater than \> Question mark \? -%% Commercial at \@ Left bracket \[ Backslash \\ -%% Right bracket \] Circumflex \^ Underscore \_ -%% Grave accent \` Left brace \{ Vertical bar \| -%% Right brace \} Tilde \~} +%\subsubsection{Italian} +% \begin{macrocode} \ProvidesFile{dt-italian.def}[2008/01/22] - -% translations provided by Giada Ermacora +% \end{macrocode} +% Translations provided by Giada Ermacora +% \begin{macrocode} \providecommand{\dayofweeknameiditalian}[1]{% \ifcase#1\relax \or domenica% @@ -3279,7 +3389,8 @@ Month numbers should go from 1 to 12}% \or venerd\`{\i}% \or sabato% \fi} - +% \end{macrocode} +% \begin{macrocode} \providecommand{\shortdayofweeknameiditalian}[1]{% \ifcase#1\relax \or dom% @@ -3290,7 +3401,8 @@ Month numbers should go from 1 to 12}% \or ven% \or sab% \fi} - +% \end{macrocode} +% \begin{macrocode} \providecommand{\monthnameitalian}[1][\month]{% \@orgargctr=#1\relax \ifcase\@orgargctr @@ -3309,7 +3421,8 @@ Month numbers should go from 1 to 12}% \or dicembre% \else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{Month numbers should go from 1 (gennaio) to 12 (dicembre)}% \fi} - +% \end{macrocode} +% \begin{macrocode} \providecommand{\shortmonthnameitalian}[1][\month]{% \@orgargctr=#1\relax \ifcase\@orgargctr @@ -3329,14 +3442,13 @@ Month numbers should go from 1 to 12}% \else% \PackageError{datetime}{Invalid Month number \the\@orgargctr}{Month numbers should go from 1 (gen) to 12 (dic)}% \fi} - +% \end{macrocode} +% \begin{macrocode} \DeclareRobustCommand*\dateitalian{% \renewcommand{\formatdate}[3]{% \@day=##1\relax\@month=##2\relax\@year=##3\relax \number\@day\space\monthnameitalian[\@month]\space\number\@year}} -\endinput -%% -%% End of file `dt-italian.def'. +% \end{macrocode} %\iffalse % \begin{macrocode} %</dt-italian.def> @@ -3614,7 +3726,8 @@ Month numbers should go from 1 to 12}% \or Freitag% \or Samstag% \fi} - +% \end{macrocode} +% \begin{macrocode} \providecommand{\shortdayofweeknameidngerman}[1]{% \ifcase#1\relax \or So% @@ -3695,6 +3808,7 @@ Month numbers should go from 1 to 12}% \ProvidesFile{dt-polish.def}[2004/10/31] % \end{macrocode} % Define month names. +%\begin{macro}{\monthnamepolish} % \begin{macrocode} \providecommand{\monthnamepolish}[1][\month]{% \@orgargctr=#1\relax @@ -3718,6 +3832,7 @@ Month numbers should go from 1 to 12}% Month numbers should go from 1 to 12}% \fi} % \end{macrocode} +%\end{macro} % (Re)Define declaration to switch to this format. % \begin{macrocode} \DeclareRobustCommand*\datepolish{% @@ -3725,6 +3840,35 @@ Month numbers should go from 1 to 12}% \@day=##1\relax\@month=##2\relax\@year=##3\relax \number\@day~\monthnamepolish[\@month]\space\number\@year}} % \end{macrocode} +% The week names were provided by Piotr Kempa +%\begin{macro}{\dayofweeknameidpolish} +% \begin{macrocode} +\providecommand{\dayofweeknameidpolish}[1]{% +\ifcase#1\relax +\or Niedziela% +\or Poniedzia\l ek% +\or Wtorek% +\or \'Sroda% +\or Czwartek% +\or Pi\k atek% +\or Sobota% +\fi} +% \end{macrocode} +%\end{macro} +%\begin{macro}{\shortdayofweeknameidpolish} +% \begin{macrocode} +\providecommand{\shortdayofweeknameidpolish}[1]{% +\ifcase#1\relax +\or Ndz.% +\or Pon.% +\or Wt.% +\or \'Sr.% +\or Czw.% +\or Pt.% +\or Sob.% +\fi} +% \end{macrocode} +%\end{macro} %\iffalse % \begin{macrocode} %</dt-polish.def> @@ -4325,17 +4469,38 @@ Month numbers should go from 1 to 12}% %\subsubsection{UKenglish} % Identify file % \begin{macrocode} -\ProvidesFile{dt-UKenglish.def}[2007/06/11] +\ProvidesFile{dt-UKenglish.def}[2010/07/07] % \end{macrocode} +%\begin{macro}{\dateUKenglish} +% \begin{macrocode} \let\dateUKenglish\longdate - +% \end{macrocode} +%\end{macro} +%\begin{macro}{\monthnameUKenglish} +% \begin{macrocode} \let\monthnameUKenglish\monthnameenglish +% \end{macrocode} +%\end{macro} +%\begin{macro}{\shortmonthnameUKenglish} +% \begin{macrocode} \let\shortmonthnameUKenglish\shortmonthnameenglish - +% \end{macrocode} +%\end{macro} +%\begin{macro}{\dayofweeknameidUKenglish} +% \begin{macrocode} \let\dayofweeknameidUKenglish\dayofweeknameidenglish +% \end{macrocode} +%\end{macro} +%\begin{macro}{\shortdayofweeknameidUKenglish} +% \begin{macrocode} \let\shortdayofweeknameidUKenglish\shortdayofweeknameidenglish - +% \end{macrocode} +%\end{macro} +%\begin{macro}{\ordinaldateUKenglish} +% \begin{macrocode} \let\ordinaldateUKenglish\ordinaldateenglish +% \end{macrocode} +%\end{macro} %\iffalse % \begin{macrocode} %</dt-UKenglish.def> @@ -4394,17 +4559,38 @@ Month numbers should go from 1 to 12}% %\subsubsection{USenglish} % Identify file % \begin{macrocode} -\ProvidesFile{dt-USenglish.def}[2007/06/11] +\ProvidesFile{dt-USenglish.def}[2010/07/07] % \end{macrocode} +%\begin{macro}{\dateUSenglish} +% \begin{macrocode} \let\dateUSenglish\usdate - +% \end{macrocode} +%\end{macro} +%\begin{macrocode}{\monthnameUSenglish} +% \begin{macrocode} \let\monthnameUSenglish\monthnameenglish +% \end{macrocode} +%\end{macro} +%\begin{macro}{\shortmonthnameUSenglish} +% \begin{macrocode} \let\shortmonthnameUSenglish\shortmonthnameenglish - +% \end{macrocode} +%\end{macro} +%\begin{macro}{\dayofweeknameidUSenglish} +% \begin{macrocode} \let\dayofweeknameidUSenglish\dayofweeknameidenglish +% \end{macrocode} +%\end{macro} +%\begin{macrocode}{\shortdayofweeknameidUSenglish} +% \begin{macrocode} \let\shortdayofweeknameidUSenglish\shortdayofweeknameidenglish - +% \end{macrocode} +%\end{macro} +%\begin{macro}{\ordinaldateUSenglish} +% \begin{macrocode} \newcommand*{\ordinaldateUSenglish}[1]{#1} +% \end{macrocode} +%\end{macro} %\iffalse % \begin{macrocode} %</dt-USenglish.def> @@ -4500,12 +4686,12 @@ Month numbers should go from 1 to 12}% %\subsubsection{Welsh} % Identify file % \begin{macrocode} -\ProvidesFile{dt-welsh.def}[2004/10/31] +\ProvidesFile{dt-welsh.def}[2010/09/21] % \end{macrocode} %\begin{macro}{\ordinaldatewelsh} % Welsh version: % \begin{macrocode} -\newcommand*{\ordinaldatewelsh}[1]{% +\providecommand*{\ordinaldatewelsh}[1]{% #1\ifnum#1=1\/\textsuperscript{a\~n}\fi} % \end{macrocode} %\end{macro} @@ -4547,5 +4733,2197 @@ Month numbers should go from 1 to 12}% %</dt-welsh.def> % \end{macrocode} %\fi +%\iffalse +% \begin{macrocode} +%<*dt-lang.tex> +% \end{macrocode} +%\fi +%\iffalse +\documentclass{article} + +\usepackage[T1]{fontenc} +\usepackage[french,spanish,english]{babel} +\usepackage{datetime} % Date will be language-dependent +%\usepackage[iso]{datetime} % Date will be displayed the same for all languages + +\begin{document} +English: \today + +\selectlanguage{french} +French: \today + +\selectlanguage{spanish} +Spanish: \today + +\begin{otherlanguage}{french} +French: \today +\end{otherlanguage} + +\today +\end{document} +%\fi +%\iffalse +% \begin{macrocode} +%</dt-lang.tex> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*dt-sampl.tex> +% \end{macrocode} +%\fi +%\iffalse +\documentclass[a4paper]{article} + +\usepackage{ifpdf} +\usepackage{datetime} + + +\ifpdf +\pdfinfo{ + /CreationDate (D:20040501215500Z) + /ModDate (D:\pdfcreationdate) +} +\fi + +\padzeroes[8] + +\newdateformat{dashdate}{\twodigit{\THEDAY}-\twodigit{\THEMONTH}-\THEYEAR} +\newdateformat{usvardate}{\monthname[\THEMONTH]~\ordinaldate{\THEDAY}, \THEYEAR} +\newdateformat{mydate}{\ifshowdow \dayofweekname{\THEDAY}{\THEMONTH}{\THEYEAR} \fi +\THEDAY\ \monthname[\THEMONTH], \THEYEAR} +\newdateformat{yyyymmdd}{\THEYEAR\twodigit{\THEMONTH}\twodigit{\THEDAY}} +\newdateformat{ukvardate}{\THEDAY\ \monthname[\THEMONTH]\ \THEYEAR} + +\newtimeformat{dottime}{\twodigit{\THEHOUR}.\twodigit{\THEMINUTE}} +\newtimeformat{dashtime12}{\THEHOURXII-\twodigit{\THEMINUTE}} +\newtimeformat{hhmm}{\twodigit{\THEHOUR}\twodigit{\THEMINUTE}} + +\begin{document} + +\section{Date Formats} +Default: \today. + +\begin{tabular}{ll} +\bfseries Declaration & \bfseries\verb|\today|\\ +\verb|\longdate| & \longdate\today\\ +\verb|\shortdate| & \shortdate\today\\ +\verb|\yyyymmdddate| & \yyyymmdddate\today\\ +\verb|\ddmmyyyydate| & \ddmmyyyydate\today\\ +\verb|\dmyyyydate| & \dmyyyydate\today\\ +\verb|\ddmmyydate| & \ddmmyydate\today\\ +\verb|\dmyydate| & \dmyydate\today\\ +\verb|\textdate| & \textdate\today\\ +\verb|\usdate| & \usdate\today\\ +\verb|\mmddyyyydate| & \mmddyyyydate\today\\ +\verb|\mdyyyydate| & \mdyyyydate\today\\ +\verb|\mmddyydate| & \mmddyydate\today\\ +\verb|\mdyydate| & \mdyydate\today +\end{tabular} + +\section{Time Formats} +Default: \currenttime. + +\begin{tabular}{@{\ttfamily}ll} +\bfseries\rmfamily Format & \bfseries \verb|\currenttime|\\ +hhmmsstime & \settimeformat{hhmmsstime}\currenttime\\ +xxivtime & \settimeformat{xxivtime}\currenttime\\ +ampmtime & \settimeformat{ampmtime}\currenttime\\ +oclock & \settimeformat{oclock}\currenttime +\end{tabular} + +\section{Specific Date:} + +\begin{tabular}{ll} +\bfseries Format & \bfseries \verb|\formatdate{1}{3}{2009}|\\ +\verb|\longdate| & \longdate\formatdate{1}{3}{2000}\\ +\verb|\shortdate| & \shortdate\formatdate{1}{3}{2000}\\ +\verb|\yyyymmdddate| & \yyyymmdddate\formatdate{1}{3}{2000}\\ +\verb|\ddmmyyyydate| & \ddmmyyyydate\formatdate{1}{3}{2000}\\ +\verb|\dmyyyydate| & \dmyyyydate\formatdate{1}{3}{2000}\\ +\verb|\ddmmyydate| & \ddmmyydate\formatdate{1}{3}{2000}\\ +\verb|\dmyydate| & \dmyydate\formatdate{1}{3}{2000}\\ +\verb|\textdate| & \textdate\formatdate{1}{3}{2000}\\ +\verb|\usdate| & \usdate\formatdate{1}{3}{2000}\\ +\verb|\mmddyyyydate| & \mmddyyyydate\formatdate{1}{3}{2000}\\ +\verb|\mdyyyydate| & \mdyyyydate\formatdate{1}{3}{2000}\\ +\verb|\mmddyydate| & \mmddyydate\formatdate{1}{3}{2000}\\ +\verb|\mdyydate| & \mdyydate\formatdate{1}{3}{2000} +\end{tabular} + +\section{Specific Time} + +\begin{tabular}{@{\ttfamily}ll} +\bfseries\rmfamily Format & \bfseries \verb|\formattime{15}{45}{00}|\\ +hhmmsstime & \settimeformat{hhmmsstime}\formattime{15}{45}{00}\\ +xxivtime & \settimeformat{xxivtime}\formattime{15}{45}{00}\\ +ampmtime & \settimeformat{ampmtime}\formattime{15}{45}{00}\\ +oclock & \settimeformat{oclock}\formattime{15}{45}{00} +\end{tabular} + +\vskip\baselineskip\noindent +\begin{tabular}{@{\ttfamily}ll} +\bfseries\rmfamily Format & \bfseries \verb|\formattime{0}{0}{0}|\\ +hhmmsstime & \settimeformat{hhmmsstime}\formattime{0}{0}{0}\\ +xxivtime & \settimeformat{xxivtime}\formattime{0}{0}{0}\\ +ampmtime & \settimeformat{ampmtime}\formattime{0}{0}{0}\\ +oclock & \settimeformat{oclock}\formattime{0}{0}{0} +\end{tabular} + +\vskip\baselineskip\noindent +\begin{tabular}{@{\ttfamily}ll} +\bfseries\rmfamily Format & \bfseries \verb|\formattime{12}{0}{0}|\\ +hhmmsstime & \settimeformat{hhmmsstime}\formattime{12}{0}{0}\\ +xxivtime & \settimeformat{xxivtime}\formattime{12}{0}{0}\\ +ampmtime & \settimeformat{ampmtime}\formattime{12}{0}{0}\\ +oclock & \settimeformat{oclock}\formattime{12}{0}{0} +\end{tabular} + +\section{Defining New Dates} + +\begin{tabular}{ll} +\verb|\dashdate| & \dashdate\today\\ +\verb|\usvardate| & \usvardate\today\\ +\verb|\ukvardate| & \ukvardate\today\\ +\verb|\mydate| & \mydate\today\\ +\verb|\yyyymmdd| & \yyyymmdd\today\\ +\verb|\dashdate| & \dashdate\formatdate{8}{3}{2000}\\ +\verb|\usvardate| & \usvardate\formatdate{8}{3}{2000}\\ +\verb|\mydate| & \mydate\formatdate{8}{3}{2000}\\ +\verb|\yyyymmdd| & \yyyymmdd\formatdate{8}{3}{2000} +\end{tabular} + +\section{Defining New Times} + +\begin{tabular}{@{\ttfamily}ll} +\bfseries\rmfamily Format & \bfseries \verb|\currenttime|\\ +dottime & \settimeformat{dottime}\currenttime\\ +dashtime12 & \settimeformat{dashtime12}\currenttime\\ +hhmm & \settimeformat{hhmm}\currenttime +\end{tabular} + +\end{document} +%\fi +%\iffalse +% \begin{macrocode} +%</dt-sampl.tex> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%<*datetime.perl> +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +# File : datetime.perl +# Author : Nicola Talbot +# Date : 17 Nov 2009 +# Version : 1.04 +# +# This is a LaTeX2HTML style implementing the datetime package, and +# is distributed as part of that package. +# Copyright 2007 Nicola L.C. Talbot +# This work may be distributed and/or modified under the +# conditions of the LaTeX Project Public License, either version 1.3 +# of this license of (at your option) any later version. +# The latest version of this license is in +# http://www.latex-project.org/lppl.txt +# and version 1.3 or later is part of all distributions of LaTeX +# version 2005/12/01 or later. +# +# This work has the LPPL maintenance status `maintained'. +# +# The Current Maintainer of this work is Nicola Talbot. + +# set up default values for internal counters. + +($global{SECONDS},$global{MINUTE},$global{HOUR},$global{DAY},$global{MONTH},$global{YEAR})=localtime(time); +$global{YEAR} += 1900; +$global{MONTH}++; + +package main; + +&do_require_package('fmtcount'); + +sub do_cmd_ordinaldate{ + &do_cmd_ordinalnum(@_); +} + +# define package options + +sub do_datetime_long{ + &do_cmd_longdate(@_); +} + +sub do_datetime_short{ + &do_cmd_shortdate(@_); +} + +sub do_datetime_text{ + &do_cmd_textdate(@_); +} + +sub do_datetime_yyyymmdd{ + &do_cmd_yyyymmdddate(@_); +} + +sub do_datetime_ddmmyyyy{ + &do_cmd_ddmmyyyydate(@_); +} + +sub do_datetime_dmyyyy{ + &do_cmd_dmyyyydate(@_); +} + +sub do_datetime_ddmmyy{ + &do_cmd_ddmmyydate(@_); +} + +sub do_datetime_dmyy{ + &do_cmd_dmyyyydate(@_); +} + +sub do_datetime_us{ + &do_cmd_usdate(@_); +} + +sub do_datetime_mmddyyyy{ + &do_cmd_mmddyyyydate(@_); +} + +sub do_datetime_mdyyyy{ + &do_cmd_mdyyyydate(@_); +} + +sub do_datetime_mmddyy{ + &do_cmd_mmddyydate(@_); +} + +sub do_datetime_mdyy{ + &do_cmd_mdyyyydate(@_); +} + +sub do_datetime_raise{ + local($tmp)=""; + + $tmp .= 'sub do_cmd_fmtord{'; + $tmp .= 'local($_) = @_;'; + $tmp .= 'local($num) = &missing_braces unless ((s/$next_pair_pr_rx//o)&&($num=$2));'; + $tmp .= 'join("", "<SUP>",$num,"</SUP>",$_);'; + $tmp .='}'; + + eval($tmp); +} + +sub do_datetime_level{ + local($tmp)=""; + + $tmp .= 'sub do_cmd_fmtord{'; + $tmp .= 'local($_) = @_;'; + $tmp .= 'local($num) = &missing_braces unless ((s/$next_pair_pr_rx//o)&&($num=$2));'; + $tmp .= 'join("", $num,$_);'; + $tmp .='}'; + + eval($tmp); +} + +sub do_datetime_dayofweek{ + &do_cmd_showdowtrue(@_); +} + +sub do_datetime_nodayofweek{ + &do_cmd_showdowfalse(@_); +} + +sub do_datetime_hhmmss{ + &set_timeformat_hhmmsstime +} + +sub do_datetime_24hr{ + &set_timeformat_xxivtime +} + +&do_datetime_24hr; + +sub do_datetime_12hr{ + &set_timeformat_ampmtime +} + +sub do_datetime_oclock{ + &set_timeformat_oclock +} + +sub do_datetime_iso{ + &set_timeformat_hhmmsstime; + &do_cmd_yyyymmdddate; + eval('sub do_cmd_dateseparator{join(\'\', \'-\', $_[0]);}'); + eval('sub do_cmd_timeseparator{join(\'\', \':\', $_[0]);}'); +} + +# babel stuff (Month will already be redefined by babel, so only need to change $dateformat) + +sub do_datetime_austrian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateaustrian{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateaustrian(@_); +} + +if (defined &austrian_today) +{ + &do_datetime_austrian(@_); +} + +sub do_datetime_bahasa{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datebahasa{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datebahasa(@_); +} + +if (defined &bahasa_today) +{ + &do_datetime_bahasa(@_); +} + +sub do_datetime_basque{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datebasque{'; + $tmp .= ' $dateformat = "THEYEAR.eko MONTHNAME[THEMONTH] THEDAY";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datebasque(@_); +} + +if (defined &basque_today) +{ + &do_datetime_basque(@_); +} + +sub do_datetime_breton{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datebreton{'; + $tmp .= ' $dateformat = "{ORDINALDATE{DAY}}\\ a viz MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + $tmp = 'sub do_cmd_ordinaldate{'; + $tmp .= 'local($_) = @_;'; + $tmp .= 'local($num) = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($num=$2));'; + $tmp .= 'local($before) = $num;'; + + $tmp .= 'if ($num == 1)'; + $tmp .= '{ $before .= \'a\~n\'; }'; + + $tmp .= '$before . $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datebreton(@_); +} + +if (defined &breton_today) +{ + &do_datetime_breton(@_); +} + +sub do_datetime_bulgarian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datebulgarian{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] THEYEAR \\cyrg.";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datebulgarian(@_); +} + +if (defined &bulgarian_today) +{ + &do_datetime_bulgarian(@_); +} + +sub do_datetime_catalan{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datecatalan{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] de THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datecatalan(@_); +} + +if (defined &catalan_today) +{ + &do_datetime_catalan(@_); +} + +sub do_datetime_croatian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datecroatian{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR.";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datecroatian(@_); +} + +if (defined &croatian_today) +{ + &do_datetime_croatian(@_); +} + +sub do_datetime_czech{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateczech{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateczech(@_); +} + +if (defined &czech_today) +{ + &do_datetime_czech(@_); +} + +sub do_datetime_danish{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datedanish{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datedanish(@_); +} + +if (defined &danish_today) +{ + &do_datetime_danish(@_); +} + +sub do_datetime_dutch{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datedutch{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datedutch(@_); +} + +if (defined &dutch_today) +{ + &do_datetime_dutch(@_); +} + +sub do_datetime_esperanto{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateesperanto{'; + $tmp .= ' $dateformat = "THEDAY--a de MONTHNAME[THEMONTH], THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateesperanto(@_); +} + +if (defined &esperanto_today) +{ + &do_datetime_esperanto(@_); +} + +sub do_datetime_estonian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateestonian{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR. a.";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateestonian(@_); +} + +if (defined &estonian_today) +{ + &do_datetime_estonian(@_); +} + +sub do_datetime_finnish{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datefinnish{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datefinnish(@_); +} + +if (defined &finnish_today) +{ + &do_datetime_finnish(@_); +} + +sub do_datetime_french{ + local($tmp) = ""; + + eval($tmp); + $tmp .= 'sub do_cmd_datefrench{'; + $tmp .= ' $dateformat = "{ORDINALDATE{DAY}}\\ MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + $tmp = 'sub do_cmd_ordinaldate{'; + $tmp .= 'local($_) = @_;'; + $tmp .= 'local($num) = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($num=$2));'; + $tmp .= 'local($before) = $num;'; + + $tmp .= 'if ($num == 1)'; + $tmp .= '{ $before .= \'\ier\'; }'; + + $tmp .= '$before . $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datefrench(@_); +} + +if (defined &french_today) +{ + &do_datetime_french(@_); +} + +sub do_datetime_galician{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dategalician{'; + $tmp .= ' $dateformat = "THEDAY de MONTHNAME[THEMONTH] de THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dategalician(@_); +} + +if (defined &galician_today) +{ + &do_datetime_galician(@_); +} + +sub do_datetime_german{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dategerman{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dategerman(@_); +} + +if (defined &german_today) +{ + &do_datetime_german(@_); +} + +sub do_datetime_greek{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dategreek{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dategreek(@_); +} + +if (defined &greek_today) +{ + &do_datetime_greek(@_); +} + +sub do_datetime_icelandic{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateicelandic{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateicelandic(@_); +} + +if (defined &icelandic_today) +{ + &do_datetime_icelandic(@_); +} + +sub do_datetime_irish{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateirish{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateirish(@_); +} + +if (defined &irish_today) +{ + &do_datetime_irish(@_); +} + +sub do_datetime_italian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateitalian{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateitalian(@_); +} + +if (defined &italian_today) +{ + &do_datetime_italian(@_); +} + +sub do_datetime_latin{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datelatin{'; + $tmp .= ' $dateformat = "ROMANNUMERALU{THEDAY} MONTHNAME[THEMONTH] ROMANNUMERALU{THEYEAR}";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datelatin(@_); +} + +if (defined &latin_today) +{ + &do_datetime_latin(@_); +} + +sub do_datetime_lsorbian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datelsorbian{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datelsorbian(@_); +} + +if (defined &lsorbian_today) +{ + &do_datetime_lsorbian(@_); +} + +sub do_datetime_magyar{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datemagyar{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR.";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datemagyar(@_); +} + +if (defined &magyar_today) +{ + &do_datetime_magyar(@_); +} + +sub do_datetime_naustrian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datenaustrian{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datenaustrian(@_); +} + +if (defined &naustrian_today) +{ + &do_datetime_naustrian(@_); +} + +sub do_datetime_ngerman{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datengerman{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datengerman(@_); +} + +if (defined &ngerman_today) +{ + &do_datetime_ngerman(@_); +} + +sub do_datetime_norsk{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datenorsk{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datenorsk(@_); +} + +if (defined &norsk_today) +{ + &do_datetime_norsk(@_); +} + +sub do_datetime_polish{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datenorsk{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datenorsk(@_); +} + +if (defined &polish_today) +{ + &do_datetime_polish(@_); +} + +sub do_datetime_portuges{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateportuges{'; + $tmp .= ' $dateformat = "THEDAY de MONTHNAME[THEMONTH] de THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateportuges(@_); +} + +if (defined &portuges_today) +{ + &do_datetime_portuges(@_); +} + +sub do_datetime_romanian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateromanian{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateromanian(@_); +} + +if (defined &romanian_today) +{ + &do_datetime_romanian(@_); +} + +sub do_datetime_russian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_daterussian{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] THEYEAR \\\\cyrg.";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_daterussian(@_); +} + +if (defined &russian_today) +{ + &do_datetime_russian(@_); +} + +sub do_datetime_samin{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datesamin{'; + $tmp .= ' $dateformat = "MONTHNAME[THEMONTH] THEDAY.~b. THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datesamin(@_); +} + +if (defined &samin_today) +{ + &do_datetime_samin(@_); +} + +sub do_datetime_scottish{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datescottish{'; + $tmp .= ' $dateformat = "THEDAY MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datescottish(@_); +} + +if (defined &scottish_today) +{ + &do_datetime_scottish(@_); +} + +sub do_datetime_serbian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateserbian{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateserbian(@_); +} + +if (defined &serbian_today) +{ + &do_datetime_serbian(@_); +} + +sub do_datetime_slovak{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateslovak{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateslovak(@_); +} + +if (defined &slovak_today) +{ + &do_datetime_slovak(@_); +} + +sub do_datetime_slovene{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateslovene{'; + $tmp .= ' $dateformat = "THEDAY. MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateslovene(@_); +} + +if (defined &slovene_today) +{ + &do_datetime_slovene(@_); +} + +sub do_datetime_spanish{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datespanish{'; + $tmp .= ' $dateformat = "THEDAY~de MONTHNAME[THEMONTH] de~THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datespanish(@_); +} + +if (defined &spanish_today) +{ + &do_datetime_spanish(@_); +} + +sub do_datetime_swedish{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateswedish{'; + $tmp .= ' $dateformat = "THEDAY~MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + $tmp = ""; + $tmp .= 'sub do_cmd_datesymd{'; + $tmp .= ' $dateformat = "THEYEAR-TWODIGIT{THEMONTH}-TWODIGIT{THEDAY}";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + $tmp = ""; + $tmp .= 'sub do_cmd_datesdmy{'; + $tmp .= ' $dateformat = "THEDAY/THEMONTH THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateswedish(@_); +} + +if (defined &swedish_today) +{ + &do_datetime_swedish(@_); +} + +sub do_datetime_turkish{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateturkish{'; + $tmp .= ' $dateformat = "THEDAY~MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateturkish(@_); +} + +if (defined &turkish_today) +{ + &do_datetime_turkish(@_); +} + +sub do_datetime_ukraineb{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateukraineb{'; + $tmp .= ' $dateformat = "THEDAY~MONTHNAME[THEMONTH] THEYEAR~\\\\cyrr.";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateukraineb(@_); +} + +if (defined &ukraineb_today) +{ + &do_datetime_ukraineb(@_); +} + +sub do_datetime_usorbian{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_dateusorbian{'; + $tmp .= ' $dateformat = "THEDAY.~MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_dateusorbian(@_); +} + +if (defined &usorbian_today) +{ + &do_datetime_usorbian(@_); +} + +sub do_datetime_welsh{ + local($tmp) = ""; + + $tmp .= 'sub do_cmd_datewelsh{'; + $tmp .= ' $dateformat = "{ORDINALDATE{DAY}}\\ a viz MONTHNAME[THEMONTH] THEYEAR";'; + $tmp .= ' $_[0];'; + $tmp .= '}'; + + eval($tmp); + + $tmp = 'sub do_cmd_ordinaldate{'; + $tmp .= 'local($_) = @_;'; + $tmp .= 'local($num) = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($num=$2));'; + $tmp .= 'local($before) = $num;'; + + $tmp .= 'if ($num == 1)'; + $tmp .= '{ $before .= \'a\~n\'; }'; + + $tmp .= '$before . $_[0];'; + $tmp .= '}'; + + eval($tmp); + + &do_cmd_datewelsh(@_); +} + +if (defined &welsh_today) +{ + &do_datetime_welsh(@_); +} + +# As far as I know, LaTeX2HTML doesn't implement TeX conditionals. +# $showdow corresponds to LaTeX boolean variable showdow +$showdow = 1; + +sub get_monthname{ + local($month) = @_; + + if ($month eq 'THEMONTH' or $month eq '\THEMONTH') + { + # this is a cludge to help newdateformat work + + 'MONTHNAME[THEMONTH]'; + } + else + { + if ($month eq '') + { + local($today) = &get_date(); + $today =~ m|(\d+)/0?(\d+)/|; + $month = $1; + } + + $Month[$month]; + } +} + +sub do_cmd_monthname{ + local($_) = @_; + local($month,$pat) = &get_next_optional_argument; + + local($monthname) = &get_monthname($month); + join('',$monthname,$_); +} + +sub get_shortmonthname{ + local($month) = @_; + + if ($month eq 'THEMONTH' or $month eq '\THEMONTH') + { + 'SHORTMONTHNAME[THEMONTH]'; + } + else + { + substr(&get_monthname($month), 0, 3); + } +} + +sub do_cmd_shortmonthname{ + local($_) = @_; + local($month,$pat) = &get_next_optional_argument; + + local($monthname) = &get_shortmonthname($month); + + join('',$monthname,$_); +} + +sub is_leap_year{ + local($year) = @_; + local($isleapyear) = 0; + + if (($year%400) == 0) + { + # year mod 400 = 0 => leap year + + $isleapyear = 1; + } + elsif (($year%100) == 0) + { + # year mod 100 = 0 and year mod 400 != 0 => not a leap year + + $isleapyear = 0; + } + elsif (($year%4) == 0) + { + # year mod 4 = 0 and year mod 100 != 0 => leap year + + $isleapyear = 1; + } + + $isleapyear; +} + +sub get_day_of_year{ + local($day,$month,$year) = @_; + local($dayofyear) = 0; + + SWITCH: { + if ($month == 2) {$dayofyear += 31; last SWITCH; } + if ($month == 3) {$dayofyear += 59; last SWITCH; } + if ($month == 4) {$dayofyear += 90; last SWITCH; } + if ($month == 5) {$dayofyear += 120; last SWITCH; } + if ($month == 6) {$dayofyear += 151; last SWITCH; } + if ($month == 7) {$dayofyear += 181; last SWITCH; } + if ($month == 8) {$dayofyear += 212; last SWITCH; } + if ($month == 9) {$dayofyear += 243; last SWITCH; } + if ($month == 10) {$dayofyear += 273; last SWITCH; } + if ($month == 11) {$dayofyear += 304; last SWITCH; } + if ($month == 12) {$dayofyear += 334; last SWITCH; } + } + + if ($month > 2 && &is_leap_year($year)) + { + $dayofyear += 1; + } + + $dayofyear += $day; + local($_)=$dayofyear; +} + +sub get_day_of_week{ + local($day,$month,$year) = @_; + local($dayofyear) = &get_day_of_year($day,$month,$year); + local($_) = (((($year-1901)%28)*1.25 + 2)%7 + $dayofyear - 1)%7 + 1; +} + +sub get_day_of_weekname_english{ + local($dow) = @_; + + local(@DayOfWeek) = ('Sunday', + 'Monday', + 'Tuesday', + 'Wednesday', + 'Thursday', + 'Friday', + 'Saturday'); + + if ($dow <= 0 || $dow > 7) + { + &write_warnings("Invalid day of week number: $dow"); + } + else + { + $DayOfWeek[$dow-1]; + } +} + +sub get_day_of_weekname_french{ + local($dow) = @_; + + local(@DayOfWeek) = ('dimanche', + 'lundi', + 'mardi', + 'mercredi', + 'jeudi', + 'vendredi', + 'samedi'); + + if ($dow <= 0 || $dow > 7) + { + &write_warnings("Invalid day of week number: $dow"); + } + else + { + $DayOfWeek[$dow-1]; + } +} + +sub get_day_of_weekname_spanish{ + local($dow) = @_; + + local(@DayOfWeek) = ('domingo', + 'lunes', + 'martes', + 'mi\\\'ercoles', + 'jueves', + 'viernes', + 's\\\'abado'); + + if ($dow <= 0 || $dow > 7) + { + &write_warnings("Invalid day of week number: $dow"); + } + else + { + $DayOfWeek[$dow-1]; + } +} + +sub get_day_of_weekname_portuges{ + local($dow) = @_; + + local(@DayOfWeek) = ('domingo', + 'segunda-feira', + 'ter\c{c}a-feira', + 'quarta-feira', + 'quinta-feira', + 'sexta-feira', + 'sabado'); + + if ($dow <= 0 || $dow > 7) + { + &write_warnings("Invalid day of week number: $dow"); + } + else + { + $DayOfWeek[$dow-1]; + } +} + +sub get_day_of_weekname_german{ + local($dow) = @_; + + local(@DayOfWeek) = ('Sonntag', + 'Montag', + 'Dienstag', + 'Mittwoch', + 'Donnerstag', + 'Freitag', + 'Samstag'); + + if ($dow <= 0 || $dow > 7) + { + &write_warnings("Invalid day of week number: $dow"); + } + else + { + $DayOfWeek[$dow-1]; + } +} + +sub get_day_of_weekname_ngerman{ + local($dow) = @_; + + local(@DayOfWeek) = ('Sonntag', + 'Montag', + 'Dienstag', + 'Mittwoch', + 'Donnerstag', + 'Freitag', + 'Samstag'); + + if ($dow <= 0 || $dow > 7) + { + &write_warnings("Invalid day of week number: $dow"); + } + else + { + $DayOfWeek[$dow-1]; + } +} + +sub get_day_of_weekname{ + local($dow)=@_; + local($dowsub); + + $dowsub = "get_day_of_weekname_$default_language"; + + if (defined ($dowsub)) + { + &$dowsub($dow); + } + else + { + &get_day_of_weekname_english($dow); + } +} + +sub get_short_day_of_weekname_english{ + local($dow) = @_; + + local(@DayOfWeek) = ('Sun', + 'Mon', + 'Tue', + 'Wed', + 'Thu', + 'Fri', + 'Sat'); + + if ($dow <= 0 || $dow > 7) + { + &write_warnings("Invalid day of week number: $dow"); + } + else + { + $DayOfWeek[$dow-1]; + } +} + +sub get_short_day_of_weekname_german{ + local($dow) = @_; + + local(@DayOfWeek) = ('So', + 'Mo', + 'Di', + 'Mi', + 'Do', + 'Fr', + 'Sa'); + + if ($dow <= 0 || $dow > 7) + { + &write_warnings("Invalid day of week number: $dow"); + } + else + { + $DayOfWeek[$dow-1]; + } +} + +sub get_short_day_of_weekname_ngerman{ + local($dow) = @_; + + local(@DayOfWeek) = ('So', + 'Mo', + 'Di', + 'Mi', + 'Do', + 'Fr', + 'Sa'); + + if ($dow <= 0 || $dow > 7) + { + &write_warnings("Invalid day of week number: $dow"); + } + else + { + $DayOfWeek[$dow-1]; + } +} + +sub get_short_day_of_weekname{ + local($dow)=@_; + local($dowsub); + + $dowsub = "get_short_day_of_weekname_$default_language"; + + if (defined ($dowsub)) + { + &$dowsub($dow); + } + else + { + substr(&get_day_of_weekname($dow),0,3); + } +} + +sub do_cmd_dayofweeknameid{ + local($_) = @_; + local($dow); + + $dow = &missing_braces unless ((s/$next_pair_pr_rx//o)&&($dow=$2)); + + join('',&get_day_of_weekname($dow), $_); +} + +sub do_cmd_dayofweekname{ + local($_) = @_; + local($day,$month,$year); + # read 1st argument + $day = &missing_braces unless ((s/$next_pair_pr_rx//o)&&($day=$2)); + # read 2nd argument + $month = &missing_braces unless ((s/$next_pair_pr_rx//o)&&($month=$2)); + # read 3rd argument + $year = &missing_braces unless ((s/$next_pair_pr_rx//o)&&($year=$2)); + + if ($day eq 'THEDAY' or $day eq '\THEDAY') + { + # this is a cludge to help newdateformat work + + join('', '{DOW}', $_); + } + else + { + local($dow) = &get_day_of_week($day,$month,$year); + + join('',&get_day_of_weekname($dow), $_); + } +} + +sub do_cmd_shortdayofweekname{ + local($_) = @_; + local($day,$month,$year); + # read 1st argument + $day = &missing_braces unless ((s/$next_pair_pr_rx//o)&&($day=$2)); + # read 2nd argument + $month = &missing_braces unless ((s/$next_pair_pr_rx//o)&&($month=$2)); + # read 3rd argument + $year = &missing_braces unless ((s/$next_pair_pr_rx//o)&&($year=$2)); + + local($dow) = &get_day_of_week($day,$month,$year); + + join('',&get_short_day_of_weekname($dow), $_); +} + +sub do_cmd_thisdayofweekname{ + local($dow) = &get_day_of_week($global{DAY}, $global{MONTH}, $global{YEAR}); + + join('',$DayOfWeek[$dow], $_); +} + +sub do_cmd_thisshortdayofweekname{ + local($dow) = &get_day_of_week($global{DAY}, $global{MONTH}, $global{YEAR}); + + join('',&get_short_day_of_weekname($dow), $_); +} + +$dateformat = "\\ifshowdow{DOW}\\fi {ORDINALDATE{DAY}}\\ MONTHNAME[THEMONTH], THEYEAR"; + +sub format_date{ + local($day,$month,$year) = @_; + + local($str) = $dateformat; + + $str =~ s/THEDAY/$day/g; + $str =~ s/THEMONTH/$month/g; + $str =~ s/THEYEAR/$year/g; + + $str =~ s/TWODIGIT{([\d]+)}/&get_twodigit($1)/eg; + $str =~ s/ROMANNUMERAL{([\d]+)}/&froman($1)/eg; + $str =~ s/ROMANNUMERALU{([\d]+)}/uc(&froman($1))/eg; + $str =~ s/TRUNCATE{([\d]+)}/&get_twodigit($1%100)/eg; + $str =~ s/SHORTMONTHNAME\[([\d]+)\]/&get_shortmonthname($1)/eg; + $str =~ s/MONTHNAME\[([\d]+)\]/&get_monthname($1)/eg; + + local($X) = ++$global{'max_id'}; + local($Y) = ++$global{'max_id'}; + local($Z) = ++$global{'max_id'}; + $str =~ s/{DOW}/\\dayofweekname${OP}$X${CP}$day${OP}$X${CP}${OP}$Y${CP}$month${OP}$Y${CP}${OP}$Z${CP}$year${OP}$Z${CP}/g; + $str =~ s/{SDOW}/\\shortdayofweekname${OP}$X${CP}$day${OP}$X${CP}${OP}$Y${CP}$month${OP}$Y${CP}${OP}$Z${CP}$year${OP}$Z${CP}/g; + + local($br_id) = ++$global{'max_id'}; + $suffix = &get_ordinal_suffix($day); + $str =~ s/{ORDINAL{DAY}}/$day\\fmtord${OP}$br_id${CP}$suffix${OP}$br_id${CP}/g; + + $br_id = ++$global{'max_id'}; + $suffix = &get_ordinal_suffix($month); + $str =~ s/{ORDINAL{MONTH}}/$month\\fmtord${OP}$br_id${CP}$suffix${OP}$br_id${CP}/g; + + $br_id = ++$global{'max_id'}; + $suffix = &get_ordinal_suffix($year); + $str =~ s/{ORDINAL{YEAR}}/$year\\fmtord${OP}$br_id${CP}$suffix${OP}$br_id${CP}/g; + + local($br_id) = ++$global{'max_id'}; + $str =~ s/{ORDINALDATE{DAY}}/\\ordinaldate${OP}$br_id${CP}$day${OP}$br_id${CP}/g; + + $str =~ s/{NNUMBERSTRING{DAY}}/&get_Numberstring($day)/eg; + $str =~ s/{NNUMBERSTRING{MONTH}}/&get_Numberstring($month)/eg; + $str =~ s/{NNUMBERSTRING{YEAR}}/&get_Numberstring($year)/eg; + + $str =~ s/{OORDINALSTRING{DAY}}/&get_Ordinalstring($day)/eg; + $str =~ s/{OORDINALSTRING{MONTH}}/&get_Ordinalstring($month)/eg; + $str =~ s/{OORDINALSTRING{YEAR}}/&get_Ordinalstring($year)/eg; + + $str =~ s/{CAPNUMBERSTRING{DAY}}/uc(&get_numberstring($day))/eg; + $str =~ s/{CAPNUMBERSTRING{MONTH}}/uc(&get_numberstring($month))/eg; + $str =~ s/{CAPNUMBERSTRING{YEAR}}/uc(&get_numberstring($year))/eg; + + $str =~ s/{CAPORDINALSTRING{DAY}}/uc(&get_ordinalstring($day))/eg; + $str =~ s/{CAPORDINALSTRING{MONTH}}/uc(&get_ordinalstring($month))/eg; + $str =~ s/{CAPORDINALSTRING{YEAR}}/uc(&get_ordinalstring($year))/eg; + + $str =~ s/{NUMBERSTRING{DAY}}/&get_numberstring($day)/eg; + $str =~ s/{NUMBERSTRING{MONTH}}/&get_numberstring($month)/eg; + $str =~ s/{NUMBERSTRING{YEAR}}/&get_numberstring($year)/eg; + + $str =~ s/{ORDINALSTRING{DAY}}/&get_ordinalstring($day)/eg; + $str =~ s/{ORDINALSTRING{MONTH}}/&get_ordinalstring($month)/eg; + $str =~ s/{ORDINALSTRING{YEAR}}/&get_ordinalstring($year)/eg; + + $str; +} + +sub do_cmd_formatdate{ + local($day,$month,$year); + # read 1st argument + $day = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($day=$2)); + # read 2nd argument + $month = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($month=$2)); + # read 3rd argument + $year = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($year=$2)); + + join('', &format_date($day,$month,$year), $_[0]); +} + +sub do_cmd_today{ + join('', &format_date($global{DAY},$global{MONTH},$global{YEAR}), $_[0]); +} + +sub do_cmd_day{ + join('', $global{DAY}, $_[0]); +} + +sub do_cmd_month{ + join('', $global{MONTH}, $_[0]); +} + +sub do_cmd_year{ + join('', $global{YEAR}, $_[0]); +} + +sub do_cmd_showdowtrue{ + local($_) = @_; + $showdow = 1; + $_[0]; +} + +sub do_cmd_showdowfalse{ + local($_) = @_; + $showdow = 0; + $_[0]; +} + +# This is a bit primative, it doesn't allow for +# nested conditionals + +sub do_cmd_ifshowdow{ + local($_) = @_; + local($ifbit,$elsebit); + + $_[0] =~s/(.*)\\fi//; + + $ifbit = $1; + + $ifbit =~s/(.*)\\else(.*)/\1/g; + + $elsebit = $2; + + if ($showdow) + { + join('', $ifbit, $_[0]); + } + else + { + join('', $elsebit, $_[0]); + } +} + +sub do_cmd_dateseparator{ + join('', '/', $_[0]); +} + +sub do_cmd_longdate{ + $dateformat = "\\ifshowdow{DOW}\\fi {ORDINALDATE{DAY}}\\ MONTHNAME[THEMONTH], THEYEAR"; + + $_[0]; +} + +sub do_cmd_shortdate{ + $dateformat = "\\ifshowdow{SDOW}\\fi {ORDINALDATE{DAY}}\\ SHORTMONTHNAME[THEMONTH], THEYEAR"; + + $_[0]; +} + +sub do_cmd_yyyymmdddate{ + $dateformat = "THEYEAR\\dateseparator TWODIGIT{THEMONTH}\\dateseparator TWODIGIT{THEDAY}"; + + $_[0]; +} + +sub do_cmd_ddmmyyyydate{ + $dateformat = "TWODIGIT{THEDAY}\\dateseparator TWODIGIT{THEMONTH}\\dateseparator THEYEAR"; + + $_[0]; +} + +sub do_cmd_dmyyyydate{ + $dateformat = "THEDAY\\dateseparator THEMONTH\\dateseparator THEYEAR"; + + $_[0]; +} + +sub do_cmd_dmyydate{ + $dateformat = "THEDAY\\dateseparator THEMONTH\\dateseparator TRUNCATE{THEYEAR}"; + + $_[0]; +} + +sub do_cmd_ddmmyydate{ + $dateformat = "TWODIGIT{THEDAY}\\dateseparator TWODIGIT{THEMONTH}\\dateseparator TRUNCATE{THEYEAR}"; + + $_[0]; +} + +sub do_cmd_textdate{ + $dateformat = "\\ifshowdow{DOW} the\\fi {OORDINALSTRING{DAY}} of MONTHNAME[THEMONTH], {NNUMBERSTRING{YEAR}}"; + + $_[0]; +} + +sub do_cmd_usdate{ + $dateformat = "MONTHNAME[THEMONTH] THEDAY, THEYEAR"; + + $_[0]; +} + +sub do_cmd_mmddyyyydate{ + $dateformat = "TWODIGIT{THEMONTH}\\dateseparator TWODIGIT{THEDAY}\\dateseparator THEYEAR"; + + $_[0]; +} + +sub do_cmd_mdyyyydate{ + $dateformat = "THEMONTH\\dateseparator THEDAY\\dateseparator THEYEAR"; + + $_[0]; +} + +sub do_cmd_mmddyydate{ + $dateformat = "TWODIGIT{THEMONTH}\\dateseparator TWODIGIT{THEDAY}\\dateseparator TRUNCATE{THEYEAR}"; + + $_[0]; +} + +sub do_cmd_mdyydate{ + $dateformat = "THEMONTH\\dateseparator THEDAY\\dateseparator TRUNCATE{THEYEAR}"; + + $_[0]; +} + +sub do_cmd_THEYEAR{ + join('', 'THEYEAR', $_[0]); +} + +sub do_cmd_THEMONTH{ + join('', 'THEMONTH', $_[0]); +} + +sub do_cmd_THEDAY{ + join('', 'THEDAY', $_[0]); +} + +sub do_cmd_newdateformat{ + local($_) = @_; + local($cmd,$cmdbody); + local($ntmp); + + $cmd = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($cmd=$2)); + $cmdbody = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($cmdbody=$2)); + + $ntmp = 'sub do_cmd_' . $cmd . '{'; + $ntmp .= '$dateformat = "' . $cmdbody . '";'; + + $ntmp .= '$_[0];'; + $ntmp .= '}'; + + eval($ntmp); + + join('', $_[0]); +} + +sub do_cmd_pdfdate{ + local($_) = @_; + + local($timestring) = sprintf "%d%02d%02d%02d%02d%02d", + $global{YEAR}, $global{MONTH}, $global{DAY}, $global{HOUR}, $global{MINUTE}, $global{SECONDS}; + + join('', $timestring, $_[0]); +} + + %userdates = (); + +sub do_cmd_newdate{ + local($_)=@_; + local($datename,$mon,$day,$year); + + $datename = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($datename=$2)); + + $day = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($day=$2)); + + $mon = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($mon =$2)); + + $year = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($year =$2)); + + + $userdates{$datename}{day} = $day; + $userdates{$datename}{month} = $mon; + $userdates{$datename}{year} = $year; + + join('', $_[0]); +} + +sub do_cmd_displaydate{ + local($_)=@_; + local($datename); + local($cmd,$br_id); + + $datename = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($datename=$2)); + + $br_id = ++$global{'max_id'}; + $cmd = "$OP$br_id$CP" . $userdates{$datename}{day} ."$OP$br_id$CP"; + $br_id = ++$global{'max_id'}; + $cmd .= "$OP$br_id$CP" . $userdates{$datename}{month} ."$OP$br_id$CP"; + $br_id = ++$global{'max_id'}; + $cmd .= "$OP$br_id$CP" . $userdates{$datename}{year} ."$OP$br_id$CP"; + + join('', '\formatdate', $cmd, $_[0]); +} + +sub do_cmd_getdateyear{ + local($_)=@_; + local($datename); + + $datename = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($datename=$2)); + + join('', $userdates{$datename}{year}, $_[0]); +} + +sub do_cmd_getdatemonth{ + local($_)=@_; + local($datename); + + $datename = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($datename=$2)); + + join('', $userdates{$datename}{month}, $_[0]); +} + +sub do_cmd_getdateday{ + local($_)=@_; + local($datename); + + $datename = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($datename=$2)); + + join('', $userdates{$datename}{day}, $_[0]); +} + +# time commands + +sub do_cmd_timeseparator{ + join('', ':', $_[0]); +} + +sub do_cmd_noon{ + local($_) = @_; + + join('', "Noon", $_[0]); +} + +sub do_cmd_midnight{ + local($_) = @_; + + join('', "Midnight", $_[0]); +} + +sub do_cmd_amname{ + local($_) = @_; + + join('', "am", $_[0]); +} + +sub do_cmd_pmname{ + local($_) = @_; + + join('', "pm", $_[0]); +} + +sub do_cmd_amstring{ + local($_) = @_; + + join('', "in the morning", $_[0]); +} + +sub do_cmd_pmstring{ + local($_) = @_; + + join('', "in the afternoon", $_[0]); +} + +sub do_cmd_halfpast{ + local($_) = @_; + + join('', "Half past", $_[0]); +} + +sub do_cmd_quarterpast{ + local($_) = @_; + + join('', "Quarter past", $_[0]); +} + +sub do_cmd_quarterto{ + local($_) = @_; + + join('', "Quarter to", $_[0]); +} + +sub do_cmd_oclockstring{ + local($_) = @_; + + join('', "O'Clock", $_[0]); +} + +sub do_cmd_amorpmname{ + if ($global{HOUR}>12) + { + &do_cmd_pmname; + } + else + { + &do_cmd_amname; + } +} + +sub do_cmd_amorpmstring{ + if ($global{HOUR}>12) + { + &do_cmd_pmstring; + } + else + { + &do_cmd_amstring; + } +} + +sub set_timeformat_hhmmsstime{ + $timeformat = "TWODIGIT{THEHOUR}\\timeseparator TWODIGIT{THEMINUTE}" + . "\\timeseparator TWODIGIT{THESECOND}"; +} + +sub set_timeformat_xxivtime{ + $timeformat = "TWODIGIT{THEHOUR}\\timeseparator TWODIGIT{THEMINUTE}"; +} + +sub format_ampmtime{ + local($hour,$min)=@_; + local($timestring); + local($hourxii) = ($hour == 12 ? 12 : ($hour)%12); + + $timestring = sprintf "%d\\timeseparator %02d", $hourxii, $min; + + $timestring .= ($hour < 12 ? + "\\amname " : ($hour = 12 ? " \\noon" :"\\pmname ")); + + $timestring +} + +sub do_cmd_ampmtime{ + local($_) = @_; + + join('', &format_ampm($global{HOUR},$global{MINUTE}), $_[0]); +} + +sub do_cmd_timeformat_at_ampmtime{ + local($hour,$min,$sec); + # read 1st argument + $hour = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($day=$2)); + # read 2nd argument + $min = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($month=$2)); + # read 3rd argument + $sec = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($year=$2)); + + join('', &format_ampmtime($hour, $min), $_[0]); +} + +sub do_cmd_timeformatATampmtime{&do_cmd_timeformat_at_ampmtime} + +sub set_timeformat_ampmtime{ + $timeformat = "TWODIGIT{THEHOURXII}\\timeseparator TWODIGIT{THEMINUTE}AMORPMNAME"; +} + +sub format_oclock{ + local($hour,$min)=@_; + + local($hourxii) = ($hour == 12 ? 12 : ($hour)%12); + local($tohour) = ($hour == 11 ? 12 :($hour+1)%12); + local($tominute) = ($min == 0? 0 : 60 - $min); + + local($timestring); + + if ($hour == 0 && $min == 0) + { + $timestring = "\\midnight"; + } + elsif ($hour == 12 && $min == 0) + { + $timestring = "\\noon"; + } + else + { + if ($min == 0) + { + $timestring = &get_Numberstring($hourxii) . " \\oclockstring"; + } + elsif ($min == 15) + { + $timestring = "\\quarterpast\\ " . &get_Numberstring($hourxii); + } + elsif ($min == 30) + { + $timestring = "\\halfpast\\ " . &get_Numberstring($hourxii); + } + elsif ($min == 45) + { + $timestring = "\\quarterto\\ " . &get_Numberstring($tohour); + } + elsif ($min < 30) + { + $timestring = get_Numberstring($min); + + $timestring .= ($min == 1 ? " minute" : " minutes") . " past "; + + $timestring .= get_Numberstring($hourxii); + } + else + { + $timestring = get_Numberstring($tominute); + + $timestring .= ($min == 1 ? " minute" : " minutes") . " to "; + + $timestring .= get_Numberstring($tohour); + } + + $timestring .= ($hour < 12 ? " \\amstring" : " \\pmstring"); + } + + $timestring +} + +sub do_cmd_oclock{ + local($_) = @_; + + join('', &format_oclock($global{HOUR},$global{MINUTE}), $_[0]); +} + +sub do_cmd_timeformat_at_oclock{ + local($hour,$min,$sec); + # read 1st argument + $hour = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($day=$2)); + # read 2nd argument + $min = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($month=$2)); + # read 3rd argument + $sec = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($year=$2)); + + join('', &format_oclock($hour, $min), $_[0]); +} + +sub do_cmd_timeformatAToclock{&do_cmd_timeformat_at_oclock} + +sub set_timeformat_oclock{ + $timeformat="OCLOCK"; +} + +sub do_cmd_formattime{ + local($_) = @_; + local($hour,$min,$sec); + + # read 1st argument + $hour = &missing_braces unless + (s/$next_pair_pr_rx/$hour=$2;''/eo); + # read 2nd argument + $min = &missing_braces unless + (s/$next_pair_pr_rx/$min=$2;''/eo); + # read 3rd argument + $sec = &missing_braces unless + (s/$next_pair_pr_rx/$sec=$2;''/eo); + + join('', &format_time($hour,$min,$sec), $_); +} + +sub do_cmd_currenttime{ + join('', &format_time($global{HOUR},$global{MINUTE},$global{SECONDS}), $_[0]); +} + +sub format_time{ + local($hour,$min,$sec) = @_; + + local($str) = $timeformat; + + local($hourxii) = ($hour == 12 ? 12 : ($hour)%12); + local($tohour) = ($hour == 11 ? 12 :($hour+1)%12); + local($tominute) = ($min == 0? 0 : 60 - $min); + local($amorpmname) = ($hour < 12 ? '\amname' : + ($hour == 12 ? ' \noon' : '\pmname')); + + $str =~ s/THEHOURXII/$hourxii/g; + $str =~ s/THEHOUR/$hour/g; + $str =~ s/THEMINUTE/$min/g; + $str =~ s/THESECOND/$sec/g; + $str =~ s/THETOHOUR/$tohour/g; + $str =~ s/THETOMINUTE/$tominute/g; + $str =~ s/AMORPMNAME/$amorpmname/g; + + $str =~ s/TWODIGIT{([\d]+)}/&get_twodigit($1)/eg; + $str =~ s/ROMANNUMERAL{([\d]+)}/&froman($1)/eg; + $str =~ s/ROMANNUMERALU{([\d]+)}/uc(&froman($1))/eg; + + $str =~ s/OCLOCK/&format_oclock($hour,$min)/eg; + + $str; +} + +sub do_cmd_settimeformat{ + local($_) = @_; + local($cmd); + + $cmd = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($cmd=$2)); + + eval('&set_timeformat_'.$cmd); + + $_[0]; +} + +sub do_cmd_newtimeformat{ + local($_) = @_; + local($cmd,$cmdbody); + + $cmd = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($cmd=$2)); + $cmdbody = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($cmdbody=$2)); + + $tmp = 'sub do_cmd_'.$cmd.'{&do_cmd_timeformat_at_'.$cmd.';}'; + eval($tmp); + + $tmp = 'sub set_timeformat_'.$cmd.'{'; + $tmp .= '$timeformat = "'.$cmdbody .'";'; + $tmp .= '}'; + eval($tmp); + + $tmp = 'sub do_cmd_timeformat_at_'.$cmd.'{'; + $tmp .= 'local($_)=@_;'; + $tmp .= 'local($hour,$min,$sec);'; + $tmp .= '$hour=&missing_braces unless '; + $tmp .= '((s/$next_pair_pr_rx//o)&&($hour=$2));'; + $tmp .= '$min=&missing_braces unless '; + $tmp .= '((s/$next_pair_pr_rx//o)&&($min=$2));'; + $tmp .= '$sec=&missing_braces unless '; + $tmp .= '((s/$next_pair_pr_rx//o)&&($sec=$2));'; + $tmp .= '&set_timeformat_'.$cmd.';'; + $tmp .= '&format_time($hour, $min, $sec).$_'; + $tmp .= "}"; + + eval($tmp); + + join('', $_[0]); +} + +sub do_cmd_THEHOUR{ + local($_) = @_; + + join('', $global{HOUR}, $_[0]); +} + +sub do_cmd_THEMINUTE{ + local($_) = @_; + + join('', $global{MINUTE}, $_[0]); +} + +sub do_cmd_THESECOND{ + local($_) = @_; + + join('', $global{SECONDS}, $_[0]); +} + +sub do_cmd_THETOHOUR{ + local($_) = @_; + + join('', $global{TOHOUR}, $_[0]); +} + +sub do_cmd_THETOMINUTE{ + local($_) = @_; + + join('', $global{TOMINUTE}, $_[0]); +} + +sub do_cmd_THEHOURXII{ + local($_) = @_; + + join('', $global{HOURXII}, $_[0]); +} + +1; +% \end{macrocode} +%\fi +%\iffalse +% \begin{macrocode} +%</datetime.perl> +% \end{macrocode} +%\fi %\Finale \endinput diff --git a/Master/texmf-dist/source/latex/datetime/datetime.ins b/Master/texmf-dist/source/latex/datetime/datetime.ins index 19af678890d..81053edca1f 100644 --- a/Master/texmf-dist/source/latex/datetime/datetime.ins +++ b/Master/texmf-dist/source/latex/datetime/datetime.ins @@ -1,4 +1,4 @@ -% datetime.ins generated using makedtx version 0.94b 2010/2/6 14:17 +% datetime.ins generated using makedtx version 0.94b 2010/9/21 10:02 \input docstrip \preamble @@ -18,7 +18,7 @@ The Current Maintainer of this work is Nicola Talbot. - This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. + This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. \endpreamble @@ -118,6 +118,11 @@ \usepostamble\defaultpostamble\from{datetime.dtx}{dt-usorbian.def,package}} \file{dt-welsh.def}{\usepreamble\defaultpreamble \usepostamble\defaultpostamble\from{datetime.dtx}{dt-welsh.def,package}} +\file{dt-lang.tex}{\usepreamble\defaultpreamble +\usepostamble\defaultpostamble\from{datetime.dtx}{dt-lang.tex,package}} +\file{dt-sampl.tex}{\usepreamble\defaultpreamble +\usepostamble\defaultpostamble\from{datetime.dtx}{dt-sampl.tex,package}} +\file{datetime.perl}{\nopreamble\nopostamble\from{datetime.dtx}{datetime.perl}} } \endbatchfile diff --git a/Master/texmf-dist/source/latex/datetime/datetime.perl b/Master/texmf-dist/source/latex/datetime/datetime.perl index 86a7646b0fa..d73fde5e52a 100644 --- a/Master/texmf-dist/source/latex/datetime/datetime.perl +++ b/Master/texmf-dist/source/latex/datetime/datetime.perl @@ -213,7 +213,7 @@ sub do_datetime_breton{ $tmp .= 'local($_) = @_;'; $tmp .= 'local($num) = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($num=$2));'; $tmp .= 'local($before) = $num;'; - + $tmp .= 'if ($num == 1)'; $tmp .= '{ $before .= \'a\~n\'; }'; @@ -407,7 +407,7 @@ sub do_datetime_french{ $tmp .= 'local($_) = @_;'; $tmp .= 'local($num) = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($num=$2));'; $tmp .= 'local($before) = $num;'; - + $tmp .= 'if ($num == 1)'; $tmp .= '{ $before .= \'\ier\'; }'; @@ -922,7 +922,7 @@ sub do_datetime_welsh{ $tmp .= 'local($_) = @_;'; $tmp .= 'local($num) = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($num=$2));'; $tmp .= 'local($before) = $num;'; - + $tmp .= 'if ($num == 1)'; $tmp .= '{ $before .= \'a\~n\'; }'; @@ -1057,12 +1057,12 @@ sub get_day_of_week{ sub get_day_of_weekname_english{ local($dow) = @_; - local(@DayOfWeek) = ('Sunday', - 'Monday', - 'Tuesday', - 'Wednesday', - 'Thursday', - 'Friday', + local(@DayOfWeek) = ('Sunday', + 'Monday', + 'Tuesday', + 'Wednesday', + 'Thursday', + 'Friday', 'Saturday'); if ($dow <= 0 || $dow > 7) @@ -1079,11 +1079,11 @@ sub get_day_of_weekname_french{ local($dow) = @_; local(@DayOfWeek) = ('dimanche', - 'lundi', - 'mardi', - 'mercredi', - 'jeudi', - 'vendredi', + 'lundi', + 'mardi', + 'mercredi', + 'jeudi', + 'vendredi', 'samedi'); if ($dow <= 0 || $dow > 7) @@ -1100,11 +1100,11 @@ sub get_day_of_weekname_spanish{ local($dow) = @_; local(@DayOfWeek) = ('domingo', - 'lunes', - 'martes', - 'mi\\\'ercoles', - 'jueves', - 'viernes', + 'lunes', + 'martes', + 'mi\\\'ercoles', + 'jueves', + 'viernes', 's\\\'abado'); if ($dow <= 0 || $dow > 7) @@ -1121,11 +1121,11 @@ sub get_day_of_weekname_portuges{ local($dow) = @_; local(@DayOfWeek) = ('domingo', - 'segunda-feira', - 'ter\c{c}a-feira', - 'quarta-feira', + 'segunda-feira', + 'ter\c{c}a-feira', + 'quarta-feira', 'quinta-feira', - 'sexta-feira', + 'sexta-feira', 'sabado'); if ($dow <= 0 || $dow > 7) @@ -1142,11 +1142,11 @@ sub get_day_of_weekname_german{ local($dow) = @_; local(@DayOfWeek) = ('Sonntag', - 'Montag', - 'Dienstag', - 'Mittwoch', - 'Donnerstag', - 'Freitag', + 'Montag', + 'Dienstag', + 'Mittwoch', + 'Donnerstag', + 'Freitag', 'Samstag'); if ($dow <= 0 || $dow > 7) @@ -1163,11 +1163,11 @@ sub get_day_of_weekname_ngerman{ local($dow) = @_; local(@DayOfWeek) = ('Sonntag', - 'Montag', - 'Dienstag', - 'Mittwoch', - 'Donnerstag', - 'Freitag', + 'Montag', + 'Dienstag', + 'Mittwoch', + 'Donnerstag', + 'Freitag', 'Samstag'); if ($dow <= 0 || $dow > 7) @@ -1199,12 +1199,12 @@ sub get_day_of_weekname{ sub get_short_day_of_weekname_english{ local($dow) = @_; - local(@DayOfWeek) = ('Sun', - 'Mon', - 'Tue', - 'Wed', - 'Thu', - 'Fri', + local(@DayOfWeek) = ('Sun', + 'Mon', + 'Tue', + 'Wed', + 'Thu', + 'Fri', 'Sat'); if ($dow <= 0 || $dow > 7) @@ -1220,12 +1220,12 @@ sub get_short_day_of_weekname_english{ sub get_short_day_of_weekname_german{ local($dow) = @_; - local(@DayOfWeek) = ('So', - 'Mo', - 'Di', - 'Mi', - 'Do', - 'Fr', + local(@DayOfWeek) = ('So', + 'Mo', + 'Di', + 'Mi', + 'Do', + 'Fr', 'Sa'); if ($dow <= 0 || $dow > 7) @@ -1241,12 +1241,12 @@ sub get_short_day_of_weekname_german{ sub get_short_day_of_weekname_ngerman{ local($dow) = @_; - local(@DayOfWeek) = ('So', - 'Mo', - 'Di', - 'Mi', - 'Do', - 'Fr', + local(@DayOfWeek) = ('So', + 'Mo', + 'Di', + 'Mi', + 'Do', + 'Fr', 'Sa'); if ($dow <= 0 || $dow > 7) @@ -1582,7 +1582,7 @@ sub do_cmd_newdateformat{ sub do_cmd_pdfdate{ local($_) = @_; - local($timestring) = sprintf "%d%02d%02d%02d%02d%02d", + local($timestring) = sprintf "%d%02d%02d%02d%02d%02d", $global{YEAR}, $global{MONTH}, $global{DAY}, $global{HOUR}, $global{MINUTE}, $global{SECONDS}; join('', $timestring, $_[0]); @@ -1602,7 +1602,6 @@ sub do_cmd_newdate{ $year = &missing_braces unless ($_[0]=~(s/$next_pair_pr_rx//o)&&($year =$2)); - $userdates{$datename}{day} = $day; $userdates{$datename}{month} = $mon; $userdates{$datename}{year} = $year; diff --git a/Master/texmf-dist/tex/latex/datetime/datetime.sty b/Master/texmf-dist/tex/latex/datetime/datetime.sty index 632191d2b39..50d22cb9c77 100644 --- a/Master/texmf-dist/tex/latex/datetime/datetime.sty +++ b/Master/texmf-dist/tex/latex/datetime/datetime.sty @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -39,7 +39,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{datetime}[2010/02/06 v2.57 Date Time Package] +\ProvidesPackage{datetime}[2010/09/21 v2.58 Date Time Package] \RequirePackage{fmtcount} \RequirePackage{ifthen} \newif\if@dt@nodate @@ -460,52 +460,64 @@ settings}} \renewcommand*{\dateseparator}{-}% \renewcommand*{\timeseparator}{:}% } -\DeclareOption{austrian}{\input{dt-austrian.def}} -\DeclareOption{american}{\input{dt-american.def}} -\DeclareOption{bahasa}{\input{dt-bahasa.def}} -\DeclareOption{basque}{\input{dt-basque.def}} -\DeclareOption{breton}{\input{dt-breton.def}} -\DeclareOption{british}{\input{dt-british.def}} -\DeclareOption{bulgarian}{\input{dt-bulgarian.def}} -\DeclareOption{catalan}{\input{dt-catalan.def}} -\DeclareOption{croatian}{\input{dt-croatian.def}} -\DeclareOption{czech}{\input{dt-czech.def}} -\DeclareOption{danish}{\input{dt-danish.def}} -\DeclareOption{dutch}{\input{dt-dutch.def}} -\DeclareOption{esperanto}{\input{dt-esperanto.def}} -\DeclareOption{estonian}{\input{dt-estonian.def}} -\DeclareOption{finnish}{\input{dt-finnish.def}} -\DeclareOption{french}{\input{dt-french.def}} -\DeclareOption{galician}{\input{dt-galician.def}} -\DeclareOption{german}{\input{dt-german.def}\dategerman} -\DeclareOption{greek}{\input{dt-greek.def}} -\DeclareOption{hebrew}{\input{dt-hebrew.def}} -\DeclareOption{icelandic}{\input{dt-icelandic.def}} -\DeclareOption{irish}{\input{dt-irish.def}} -\DeclareOption{italian}{\input{dt-italian.def}} -\DeclareOption{latin}{\input{dt-latin.def}} -\DeclareOption{lsorbian}{\input{dt-lsorbian.def}} -\DeclareOption{magyar}{\input{dt-magyar.def}} -\DeclareOption{naustrian}{\input{dt-naustrian.def}} -\DeclareOption{ngerman}{\input{dt-ngerman.def}\datengerman} -\DeclareOption{norsk}{\input{dt-norsk.def}} -\DeclareOption{polish}{\input{dt-polish.def}} -\DeclareOption{portuges}{\input{dt-portuges.def}} -\DeclareOption{romanian}{\input{dt-romanian.def}} -\DeclareOption{russian}{\input{dt-russian.def}} -\DeclareOption{samin}{\input{dt-samin.def}} -\DeclareOption{scottish}{\input{dt-scottish.def}} -\DeclareOption{serbian}{\input{dt-serbian.def}} -\DeclareOption{slovak}{\input{dt-slovak.def}} -\DeclareOption{slovene}{\input{dt-slovene.def}} -\DeclareOption{spanish}{\input{dt-spanish.def}} -\DeclareOption{swedish}{\input{dt-swedish.def}} -\DeclareOption{turkish}{\input{dt-turkish.def}} -\DeclareOption{ukraineb}{\input{dt-ukraineb.def}} -\DeclareOption{usorbian}{\input{dt-usorbian.def}} -\DeclareOption{UKenglish}{\input{dt-UKenglish.def}} -\DeclareOption{USenglish}{\input{dt-USenglish.def}} -\DeclareOption{welsh}{\input{dt-welsh.def}} +\newcommand*{\loadDTdef}[1]{% + \@ifundefined{ver@dt-#1.def}% + {% + \InputIfFileExists{dt-#1.def}% + {}% + {% + \PackageWarning{datetime}{Can't find datetime language + definition file for `#1'}% + }% + }% + {}% +} +\DeclareOption{austrian}{\loadDTdef{austrian}} +\DeclareOption{american}{\loadDTdef{american}} +\DeclareOption{bahasa}{\loadDTdef{bahasa}} +\DeclareOption{basque}{\loadDTdef{basque}} +\DeclareOption{breton}{\loadDTdef{breton}} +\DeclareOption{british}{\loadDTdef{british}} +\DeclareOption{bulgarian}{\loadDTdef{bulgarian}} +\DeclareOption{catalan}{\loadDTdef{catalan}} +\DeclareOption{croatian}{\loadDTdef{croatian}} +\DeclareOption{czech}{\loadDTdef{czech}} +\DeclareOption{danish}{\loadDTdef{danish}} +\DeclareOption{dutch}{\loadDTdef{dutch}} +\DeclareOption{esperanto}{\loadDTdef{esperanto}} +\DeclareOption{estonian}{\loadDTdef{estonian}} +\DeclareOption{finnish}{\loadDTdef{finnish}} +\DeclareOption{french}{\loadDTdef{french}} +\DeclareOption{galician}{\loadDTdef{galician}} +\DeclareOption{german}{\loadDTdef{german}\dategerman} +\DeclareOption{greek}{\loadDTdef{greek}} +\DeclareOption{hebrew}{\loadDTdef{hebrew}} +\DeclareOption{icelandic}{\loadDTdef{icelandic}} +\DeclareOption{irish}{\loadDTdef{irish}} +\DeclareOption{italian}{\loadDTdef{italian}} +\DeclareOption{latin}{\loadDTdef{latin}} +\DeclareOption{lsorbian}{\loadDTdef{lsorbian}} +\DeclareOption{magyar}{\loadDTdef{magyar}} +\DeclareOption{naustrian}{\loadDTdef{naustrian}} +\DeclareOption{ngerman}{\loadDTdef{ngerman}\datengerman} +\DeclareOption{norsk}{\loadDTdef{norsk}} +\DeclareOption{polish}{\loadDTdef{polish}} +\DeclareOption{portuges}{\loadDTdef{portuges}} +\DeclareOption{romanian}{\loadDTdef{romanian}} +\DeclareOption{russian}{\loadDTdef{russian}} +\DeclareOption{samin}{\loadDTdef{samin}} +\DeclareOption{scottish}{\loadDTdef{scottish}} +\DeclareOption{serbian}{\loadDTdef{serbian}} +\DeclareOption{slovak}{\loadDTdef{slovak}} +\DeclareOption{slovene}{\loadDTdef{slovene}} +\DeclareOption{spanish}{\loadDTdef{spanish}} +\DeclareOption{swedish}{\loadDTdef{swedish}} +\DeclareOption{turkish}{\loadDTdef{turkish}} +\DeclareOption{ukraineb}{\loadDTdef{ukraineb}} +\DeclareOption{usorbian}{\loadDTdef{usorbian}} +\DeclareOption{UKenglish}{\loadDTdef{UKenglish}} +\DeclareOption{USenglish}{\loadDTdef{USenglish}} +\DeclareOption{welsh}{\loadDTdef{welsh}} \ProcessOptions \if@dt@nodate \PackageInfo{datetime}{option "nodate" used, so note defining @@ -714,52 +726,52 @@ language '\languagename', defaulting to long version}}% \if@dt@nodate \else \@ifundefined{dateenglish}{}{\let\dateenglish\longdate} -\@ifundefined{dateUKenglish}{}{\input{dt-UKenglish.def}} -\@ifundefined{dateUSenglish}{}{\input{dt-USenglish.def}} -\@ifundefined{datebritish}{}{\input{dt-british.def}} -\@ifundefined{dateamerican}{}{\input{dt-american.def}} -\@ifundefined{dateaustrian}{}{\input{dt-austrian.def}} -\@ifundefined{datebahasa}{}{\input{dt-bahasa.def}} -\@ifundefined{datebasque}{}{\input{dt-basque.def}} -\@ifundefined{datebreton}{}{\input{dt-breton.def}} -\@ifundefined{datebulgarian}{}{\input{dt-bulgarian.def}} -\@ifundefined{datecatalan}{}{\input{dt-catalan.def}} -\@ifundefined{datecroatian}{}{\input{dt-croatian.def}} -\@ifundefined{dateczech}{}{\input{dt-czech.def}} -\@ifundefined{datedanish}{}{\input{dt-danish.def}} -\@ifundefined{datedutch}{}{\input{dt-dutch.def}} -\@ifundefined{dateesperanto}{}{\input{dt-esperanto.def}} -\@ifundefined{dateestonian}{}{\input{dt-estonian.def}} -\@ifundefined{datefinnish}{}{\input{dt-finnish.def}} -\@ifundefined{datefrench}{}{\input{dt-french.def}} -\@ifundefined{dategalician}{}{\input{dt-galician.def}} -\@ifundefined{dategerman}{}{\input{dt-german.def}} -\@ifundefined{dategreek}{}{\input{dt-greek.def}} -\@ifundefined{datehebrew}{}{\input{dt-hebrew.def}} -\@ifundefined{dateicelandic}{}{\input{dt-icelandic.def}} -\@ifundefined{dateirish}{}{\input{dt-irish.def}} -\@ifundefined{dateitalian}{}{\input{dt-italian.def}} -\@ifundefined{datelatin}{}{\input{dt-latin.def}} -\@ifundefined{datelsorbian}{}{\input{dt-lsorbian.def}} -\@ifundefined{datemagyar}{}{\input{dt-magyar.def}} -\@ifundefined{datenaustrian}{}{\input{dt-naustrian.def}} -\@ifundefined{datengerman}{}{\input{dt-ngerman.def}} -\@ifundefined{datenorsk}{}{\input{dt-norsk.def}} -\@ifundefined{datepolish}{}{\input{dt-polish.def}} -\@ifundefined{dateportuges}{}{\input{dt-portuges.def}} -\@ifundefined{dateromanian}{}{\input{dt-romanian.def}} -\@ifundefined{daterussian}{}{\input{dt-russian.def}} -\@ifundefined{datesamin}{}{\input{dt-samin.def}} -\@ifundefined{datescottish}{}{\input{dt-scottish.def}} -\@ifundefined{dateserbian}{}{\input{dt-serbian.def}} -\@ifundefined{dateslovak}{}{\input{dt-slovak.def}} -\@ifundefined{dateslovene}{}{\input{dt-slovene.def}} -\@ifundefined{datespanish}{}{\input{dt-spanish.def}} -\@ifundefined{dateswedish}{}{\input{dt-swedish.def}} -\@ifundefined{dateturkish}{}{\input{dt-turkish.def}} -\@ifundefined{dateukraineb}{}{\input{dt-ukraineb.def}} -\@ifundefined{dateusorbian}{}{\input{dt-usorbian.def}} -\@ifundefined{datewelsh}{}{\input{dt-welsh.def}} +\@ifundefined{dateUKenglish}{}{\loadDTdef{UKenglish}} +\@ifundefined{dateUSenglish}{}{\loadDTdef{USenglish}} +\@ifundefined{datebritish}{}{\loadDTdef{british}} +\@ifundefined{dateamerican}{}{\loadDTdef{american}} +\@ifundefined{dateaustrian}{}{\loadDTdef{austrian}} +\@ifundefined{datebahasa}{}{\loadDTdef{bahasa}} +\@ifundefined{datebasque}{}{\loadDTdef{basque}} +\@ifundefined{datebreton}{}{\loadDTdef{breton}} +\@ifundefined{datebulgarian}{}{\loadDTdef{bulgarian}} +\@ifundefined{datecatalan}{}{\loadDTdef{catalan}} +\@ifundefined{datecroatian}{}{\loadDTdef{croatian}} +\@ifundefined{dateczech}{}{\loadDTdef{czech}} +\@ifundefined{datedanish}{}{\loadDTdef{danish}} +\@ifundefined{datedutch}{}{\loadDTdef{dutch}} +\@ifundefined{dateesperanto}{}{\loadDTdef{esperanto}} +\@ifundefined{dateestonian}{}{\loadDTdef{estonian}} +\@ifundefined{datefinnish}{}{\loadDTdef{finnish}} +\@ifundefined{datefrench}{}{\loadDTdef{french}} +\@ifundefined{dategalician}{}{\loadDTdef{galician}} +\@ifundefined{dategerman}{}{\loadDTdef{german}} +\@ifundefined{dategreek}{}{\loadDTdef{greek}} +\@ifundefined{datehebrew}{}{\loadDTdef{hebrew}} +\@ifundefined{dateicelandic}{}{\loadDTdef{icelandic}} +\@ifundefined{dateirish}{}{\loadDTdef{irish}} +\@ifundefined{dateitalian}{}{\loadDTdef{italian}} +\@ifundefined{datelatin}{}{\loadDTdef{latin}} +\@ifundefined{datelsorbian}{}{\loadDTdef{lsorbian}} +\@ifundefined{datemagyar}{}{\loadDTdef{magyar}} +\@ifundefined{datenaustrian}{}{\loadDTdef{naustrian}} +\@ifundefined{datengerman}{}{\loadDTdef{ngerman}} +\@ifundefined{datenorsk}{}{\loadDTdef{norsk}} +\@ifundefined{datepolish}{}{\loadDTdef{polish}} +\@ifundefined{dateportuges}{}{\loadDTdef{portuges}} +\@ifundefined{dateromanian}{}{\loadDTdef{romanian}} +\@ifundefined{daterussian}{}{\loadDTdef{russian}} +\@ifundefined{datesamin}{}{\loadDTdef{samin}} +\@ifundefined{datescottish}{}{\loadDTdef{scottish}} +\@ifundefined{dateserbian}{}{\loadDTdef{serbian}} +\@ifundefined{dateslovak}{}{\loadDTdef{slovak}} +\@ifundefined{dateslovene}{}{\loadDTdef{slovene}} +\@ifundefined{datespanish}{}{\loadDTdef{spanish}} +\@ifundefined{dateswedish}{}{\loadDTdef{swedish}} +\@ifundefined{dateturkish}{}{\loadDTdef{turkish}} +\@ifundefined{dateukraineb}{}{\loadDTdef{ukraineb}} +\@ifundefined{dateusorbian}{}{\loadDTdef{usorbian}} +\@ifundefined{datewelsh}{}{\loadDTdef{welsh}} \fi \newtoks\dt@a \newtoks\dt@b \edef\pdfdate{\the\year} diff --git a/Master/texmf-dist/tex/latex/datetime/dt-UKenglish.def b/Master/texmf-dist/tex/latex/datetime/dt-UKenglish.def index 4500f902232..7054fd20875 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-UKenglish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-UKenglish.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,13 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-UKenglish.def}[2010/07/07] +\let\dateUKenglish\longdate +\let\monthnameUKenglish\monthnameenglish +\let\shortmonthnameUKenglish\shortmonthnameenglish +\let\dayofweeknameidUKenglish\dayofweeknameidenglish +\let\shortdayofweeknameidUKenglish\shortdayofweeknameidenglish +\let\ordinaldateUKenglish\ordinaldateenglish \endinput %% %% End of file `dt-UKenglish.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-USenglish.def b/Master/texmf-dist/tex/latex/datetime/dt-USenglish.def index 298b51cbad8..b8c36a6ac20 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-USenglish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-USenglish.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,13 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-USenglish.def}[2010/07/07] +\let\dateUSenglish\usdate +\let\monthnameUSenglish\monthnameenglish +\let\shortmonthnameUSenglish\shortmonthnameenglish +\let\dayofweeknameidUSenglish\dayofweeknameidenglish +\let\shortdayofweeknameidUSenglish\shortdayofweeknameidenglish +\newcommand*{\ordinaldateUSenglish}[1]{#1} \endinput %% %% End of file `dt-USenglish.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-american.def b/Master/texmf-dist/tex/latex/datetime/dt-american.def index 7ee9c8ce51c..e315c684d09 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-american.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-american.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,16 +38,13 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesFile{dt-american.def}[2007/06/11] +\ProvidesFile{dt-american.def}[2010/09/21] \let\dateamerican\usdate - \let\monthnameamerican\monthnameenglish \let\shortmonthnameamerican\shortmonthnameenglish - \let\dayofweeknameidamerican\dayofweeknameidenglish \let\shortdayofweeknameidamerican\shortdayofweeknameidenglish - -\newcommand*{\ordinaldateamerican}[1]{#1} +\providecommand*{\ordinaldateamerican}[1]{#1} \endinput %% %% End of file `dt-american.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-austrian.def b/Master/texmf-dist/tex/latex/datetime/dt-austrian.def index 18f437ec78a..bf45d3cd219 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-austrian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-austrian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-bahasa.def b/Master/texmf-dist/tex/latex/datetime/dt-bahasa.def index eafd4e1a675..1734747aa73 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-bahasa.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-bahasa.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-basque.def b/Master/texmf-dist/tex/latex/datetime/dt-basque.def index af0991d11b6..099a94f40d4 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-basque.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-basque.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-breton.def b/Master/texmf-dist/tex/latex/datetime/dt-breton.def index 87e4d3f9997..4c8a5f86708 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-breton.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-breton.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,8 +38,8 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesFile{dt-breton.def}[2004/10/31] -\newcommand*{\ordinaldatebreton}[1]{% +\ProvidesFile{dt-breton.def}[2010/09/21] +\providecommand*{\ordinaldatebreton}[1]{% #1\ifnum#1=1\/\textsuperscript{a\~n}\fi} \providecommand{\monthnamebreton}[1][\month]{% \@orgargctr=#1\relax diff --git a/Master/texmf-dist/tex/latex/datetime/dt-british.def b/Master/texmf-dist/tex/latex/datetime/dt-british.def index 871561fcc8e..579e79fab69 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-british.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-british.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -40,13 +40,10 @@ %% Right brace \} Tilde \~} \ProvidesFile{dt-british.def}[2007/06/15] \let\datebritish\longdate - \let\monthnamebritish\monthnameenglish \let\shortmonthnamebritish\shortmonthnameenglish - \let\dayofweeknameidbritish\dayofweeknameidenglish \let\shortdayofweeknameidbritish\shortdayofweeknameidenglish - \let\ordinaldatebritish\ordinaldateenglish \endinput %% diff --git a/Master/texmf-dist/tex/latex/datetime/dt-bulgarian.def b/Master/texmf-dist/tex/latex/datetime/dt-bulgarian.def index 6c7fc74d3fe..c53fd197aeb 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-bulgarian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-bulgarian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-catalan.def b/Master/texmf-dist/tex/latex/datetime/dt-catalan.def index 4a932891ded..62201fc620a 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-catalan.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-catalan.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-croatian.def b/Master/texmf-dist/tex/latex/datetime/dt-croatian.def index c79fc1977c8..1de083b1d5f 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-croatian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-croatian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-czech.def b/Master/texmf-dist/tex/latex/datetime/dt-czech.def index 095e005b69c..71971af9b8f 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-czech.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-czech.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-danish.def b/Master/texmf-dist/tex/latex/datetime/dt-danish.def index f989cb58acb..6a10ebc0de1 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-danish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-danish.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-dutch.def b/Master/texmf-dist/tex/latex/datetime/dt-dutch.def index 326118077cd..6e37f67bdff 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-dutch.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-dutch.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-esperanto.def b/Master/texmf-dist/tex/latex/datetime/dt-esperanto.def index eca021014e4..8f835707205 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-esperanto.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-esperanto.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-estonian.def b/Master/texmf-dist/tex/latex/datetime/dt-estonian.def index 9336d6268b6..d0d6bd1f3a0 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-estonian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-estonian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-finnish.def b/Master/texmf-dist/tex/latex/datetime/dt-finnish.def index 907ec9dc733..d0fe3c4a916 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-finnish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-finnish.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-french.def b/Master/texmf-dist/tex/latex/datetime/dt-french.def index f6a56336054..6b91bf7a6c3 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-french.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-french.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,8 +38,8 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -\ProvidesFile{dt-french.def}[2004/10/31] -\newcommand*{\ordinaldatefrench}[1]{% +\ProvidesFile{dt-french.def}[2010/09/21] +\providecommand*{\ordinaldatefrench}[1]{% #1\ifnum#1=1\ier\fi} \providecommand*{\ier}{\textsuperscript{er}} \providecommand{\dayofweeknameidfrench}[1]{% diff --git a/Master/texmf-dist/tex/latex/datetime/dt-galician.def b/Master/texmf-dist/tex/latex/datetime/dt-galician.def index b0c2420aba9..57e6e81de64 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-galician.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-galician.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-german.def b/Master/texmf-dist/tex/latex/datetime/dt-german.def index 8350d563121..937defb0b07 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-german.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-german.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -70,7 +70,6 @@ Month numbers should go from 1 (janvier) to 12 (decembre)}% \or Freitag% \or Samstag% \fi} - \providecommand{\shortdayofweeknameidgerman}[1]{% \ifcase#1\relax \or So% diff --git a/Master/texmf-dist/tex/latex/datetime/dt-greek.def b/Master/texmf-dist/tex/latex/datetime/dt-greek.def index f476b54f00d..5a04eff47d5 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-greek.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-greek.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-hebrew.def b/Master/texmf-dist/tex/latex/datetime/dt-hebrew.def index 5aeeab10296..5834c664dfe 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-hebrew.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-hebrew.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-icelandic.def b/Master/texmf-dist/tex/latex/datetime/dt-icelandic.def index f3667611211..fb773abc2a3 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-icelandic.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-icelandic.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-irish.def b/Master/texmf-dist/tex/latex/datetime/dt-irish.def index 5d31698f2f4..d1381b3c396 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-irish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-irish.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z diff --git a/Master/texmf-dist/tex/latex/datetime/dt-italian.def b/Master/texmf-dist/tex/latex/datetime/dt-italian.def index ccda97d1a1b..6e5edee5cd5 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-italian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-italian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,36 +38,7 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} -%% -%% This is file `dt-italian.def', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% datetime.dtx (with options: `dt-italian.def,package') -%% Copyright (C) 2005 Nicola Talbot, all rights reserved. -%% If you modify this file, you must change its name first. -%% You are NOT ALLOWED to distribute this file alone. You are NOT -%% ALLOWED to take money for the distribution or use of either this -%% file or a changed version, except for a nominal charge for copying -%% etc. -%% \CharacterTable -%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z -%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z -%% Digits \0\1\2\3\4\5\6\7\8\9 -%% Exclamation \! Double quote \" Hash (number) \# -%% Dollar \$ Percent \% Ampersand \& -%% Acute accent \' Left paren \( Right paren \) -%% Asterisk \* Plus \+ Comma \, -%% Minus \- Point \. Solidus \/ -%% Colon \: Semicolon \; Less than \< -%% Equals \= Greater than \> Question mark \? -%% Commercial at \@ Left bracket \[ Backslash \\ -%% Right bracket \] Circumflex \^ Underscore \_ -%% Grave accent \` Left brace \{ Vertical bar \| -%% Right brace \} Tilde \~} \ProvidesFile{dt-italian.def}[2008/01/22] - \providecommand{\dayofweeknameiditalian}[1]{% \ifcase#1\relax \or domenica% @@ -78,7 +49,6 @@ \or venerd\`{\i}% \or sabato% \fi} - \providecommand{\shortdayofweeknameiditalian}[1]{% \ifcase#1\relax \or dom% @@ -89,7 +59,6 @@ \or ven% \or sab% \fi} - \providecommand{\monthnameitalian}[1][\month]{% \@orgargctr=#1\relax \ifcase\@orgargctr @@ -108,7 +77,6 @@ \or dicembre% \else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{Month numbers should go from 1 (gennaio) to 12 (dicembre)}% \fi} - \providecommand{\shortmonthnameitalian}[1][\month]{% \@orgargctr=#1\relax \ifcase\@orgargctr @@ -128,7 +96,6 @@ \else% \PackageError{datetime}{Invalid Month number \the\@orgargctr}{Month numbers should go from 1 (gen) to 12 (dic)}% \fi} - \DeclareRobustCommand*\dateitalian{% \renewcommand{\formatdate}[3]{% \@day=##1\relax\@month=##2\relax\@year=##3\relax diff --git a/Master/texmf-dist/tex/latex/datetime/dt-latin.def b/Master/texmf-dist/tex/latex/datetime/dt-latin.def index 9cfdb8355ee..f4621bc2a10 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-latin.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-latin.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,35 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-latin.def}[2004/10/31] +\providecommand{\monthnamelatin}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or Ianuarii% +\or Februarii% +\or Martii% +\or Aprilis% +\or Maii% +\or Iunii% +\or Iulii% +\or Augusti% +\or Septembris% +\or Octobris% +\or Novembris% +\or Decembris% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\datelatin{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\check@mathfonts\fontsize\sf@size\z@\math@fontsfalse\selectfont +\uppercase\expandafter{\romannumeral\@day}% +~\monthnamelatin[\@month]\space +{\uppercase\expandafter{\romannumeral\@year}}}} \endinput %% %% End of file `dt-latin.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-lsorbian.def b/Master/texmf-dist/tex/latex/datetime/dt-lsorbian.def index 64a18fba941..e537d4faa82 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-lsorbian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-lsorbian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,59 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-lsorbian.def}[2004/10/31] +\providecommand{\monthnamenewlsorbian}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or januara% +\or februara% +\or m\v erca% +\or apryla% +\or maja% +\or junija% +\or julija% +\or awgusta% +\or septembra% +\or oktobra% +\or nowembra% +\or decembra% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\providecommand{\monthnameoldlsorbian}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or wjelikego ro\v zka% +\or ma\l ego ro\v zka% +\or nal\v etnika% +\or jat\v sownika% +\or ro\v zownika% +\or sma\v znika% +\or pra\v znika% +\or \v znje\'nca% +\or po\v znje\'nca% +\or winowca% +\or nazymnika% +\or godownika% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\let\monthnamelsorbian=\monthnamenewlsorbian +\DeclareRobustCommand*\newdatelsorbian{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day.~\monthnamenewlsorbian[\@month]\space\number\@year}} +\DeclareRobustCommand*\olddatelsorbian{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day.~\monthnameoldlsorbian[\@month]\space\number\@year}} +\let\datelsorbian\newdatelsorbian \endinput %% %% End of file `dt-lsorbian.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-magyar.def b/Master/texmf-dist/tex/latex/datetime/dt-magyar.def index 72e90f23107..333a67abee0 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-magyar.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-magyar.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,32 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-magyar.def}[2004/10/31] +\providecommand{\monthnamemagyar}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or janu\'ar% +\or febru\'ar% +\or m\'arcius% +\or \'aprilis% +\or m\'ajus% +\or j\'unius% +\or j\'ulius% +\or augusztus% +\or szeptember% +\or okt\'ober% +\or november% +\or december% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\datemagyar{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@year.~\monthnamemagyar[\@month]\space\number\@day.}} \endinput %% %% End of file `dt-magyar.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-naustrian.def b/Master/texmf-dist/tex/latex/datetime/dt-naustrian.def index 1aeac3a1ef6..d5d68dcbc51 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-naustrian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-naustrian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,32 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-naustrian.def}[2004/10/31] +\providecommand{\monthnamenaustrian}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or J\"anner% +\or Februar% +\or M\"arz% +\or April% +\or Mai% +\or Juni% +\or Juli% +\or August% +\or September% +\or Oktober% +\or November% +\or Dezember% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\datenaustrian{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day.~\monthnamenaustrian[\@month]\space\number\@year}} \endinput %% %% End of file `dt-naustrian.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-ngerman.def b/Master/texmf-dist/tex/latex/datetime/dt-ngerman.def index e1fecb5f785..d070d91242a 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-ngerman.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-ngerman.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,52 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-ngerman.def}[2004/10/31] +\providecommand{\monthnamengerman}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or Januar% +\or Februar% +\or M\"arz% +\or April% +\or Mai% +\or Juni% +\or Juli% +\or August% +\or September% +\or Oktober% +\or November% +\or Dezember% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\providecommand{\dayofweeknameidngerman}[1]{% +\ifcase#1\relax +\or Sonntag% +\or Montag% +\or Dienstag% +\or Mittwoch% +\or Donnerstag% +\or Freitag% +\or Samstag% +\fi} +\providecommand{\shortdayofweeknameidngerman}[1]{% +\ifcase#1\relax +\or So% +\or Mo% +\or Di% +\or Mi% +\or Do% +\or Fr% +\or Sa% +\fi} +\DeclareRobustCommand*\datengerman{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day.~\monthnamengerman[\@month]\space\number\@year}} \endinput %% %% End of file `dt-ngerman.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-norsk.def b/Master/texmf-dist/tex/latex/datetime/dt-norsk.def index 5f182f8b14c..0f7a2a9be52 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-norsk.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-norsk.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,32 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-norsk.def}[2004/10/31] +\providecommand{\monthnamenorsk}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or januar% +\or februar% +\or mars% +\or april% +\or mai% +\or juni% +\or juli% +\or august% +\or september% +\or oktober% +\or november% +\or desember% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\datenorsk{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day.~\monthnamenorsk[\@month]\space\number\@year}} \endinput %% %% End of file `dt-norsk.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-polish.def b/Master/texmf-dist/tex/latex/datetime/dt-polish.def index 74304eb7515..33ab9fdb30c 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-polish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-polish.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,52 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-polish.def}[2004/10/31] +\providecommand{\monthnamepolish}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or stycznia% +\or lutego% +\or marca% +\or kwietnia% +\or maja% +\or czerwca% +\or lipca% +\or sierpnia% +\or wrze\'snia% +\or pa\'zdziernika% +\or listopada% +\or grudnia% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\datepolish{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day~\monthnamepolish[\@month]\space\number\@year}} +\providecommand{\dayofweeknameidpolish}[1]{% +\ifcase#1\relax +\or Niedziela% +\or Poniedzia\l ek% +\or Wtorek% +\or \'Sroda% +\or Czwartek% +\or Pi\k atek% +\or Sobota% +\fi} +\providecommand{\shortdayofweeknameidpolish}[1]{% +\ifcase#1\relax +\or Ndz.% +\or Pon.% +\or Wt.% +\or \'Sr.% +\or Czw.% +\or Pt.% +\or Sob.% +\fi} \endinput %% %% End of file `dt-polish.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-portuges.def b/Master/texmf-dist/tex/latex/datetime/dt-portuges.def index d415c0291d7..0afda5c6d4a 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-portuges.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-portuges.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,43 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-portuges.def}[2004/10/31] +\providecommand{\dayofweeknameidportuges}[1]{% +\ifcase#1\relax +\or domingo% +\or segunda-feira% +\or ter\c{c}a-feira% +\or quarta-feira% +\or quinta-feira% +\or sexta-feira% +\or sabado% +\fi} +\providecommand{\monthnameportuges}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or Janeiro% +\or Fevereiro% +\or Mar\c{c}o% +\or Abril% +\or Maio% +\or Junho% +\or Julho% +\or Agosto% +\or Setembro% +\or Outubro% +\or Novembro% +\or Dezembro% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\dateportuges{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day\space de\space\monthnameportuges[\@month]\space +de\space\number\@year}} \endinput %% %% End of file `dt-portuges.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-romanian.def b/Master/texmf-dist/tex/latex/datetime/dt-romanian.def index 40d3a59b449..bc1d33ee84d 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-romanian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-romanian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,52 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-romanian.def}[2004/10/31] +\providecommand{\monthnameromanian}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or ianuarie% +\or februarie% +\or martie% +\or aprilie% +\or mai% +\or iunie% +\or iulie% +\or august% +\or septembrie% +\or octombrie% +\or noiembrie% +\or decembrie% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\dateromanian{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day~\monthnameromanian[\@month]\space\number\@year}} +\providecommand{\dayofweeknameidromanian}[1]{% +\ifcase#1\relax +\or duminic\u{a}% +\or luni% +\or mar\c{t}i% +\or miercuri% +\or joi% +\or vineri% +\or s\^{a}mb\u{a}t\u{a}% +\fi} +\providecommand{\shortdayofweeknameidromanian}[1]{% +\ifcase#1\relax +\or D% +\or L% +\or Ma% +\or Mi% +\or J% +\or V% +\or S% +\fi} \endinput %% %% End of file `dt-romanian.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-russian.def b/Master/texmf-dist/tex/latex/datetime/dt-russian.def index f0934db1fba..02f5e7ed717 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-russian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-russian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,32 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-russian.def}[2004/10/31] +\providecommand{\monthnamerussian}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or \cyrya\cyrn\cyrv\cyra\cyrr\cyrya\or + \cyrf\cyre\cyrv\cyrr\cyra\cyrl\cyrya\or + \cyrm\cyra\cyrr\cyrt\cyra\or + \cyra\cyrp\cyrr\cyre\cyrl\cyrya\or + \cyrm\cyra\cyrya\or + \cyri\cyryu\cyrn\cyrya\or + \cyri\cyryu\cyrl\cyrya\or + \cyra\cyrv\cyrg\cyru\cyrs\cyrt\cyra\or + \cyrs\cyre\cyrn\cyrt\cyrya\cyrb\cyrr\cyrya\or + \cyro\cyrk\cyrt\cyrya\cyrb\cyrr\cyrya\or + \cyrn\cyro\cyrya\cyrb\cyrr\cyrya\or + \cyrd\cyre\cyrk\cyra\cyrb\cyrr\cyrya% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\daterussian{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day~\monthnamerussian[\@month]\ \number\@year~\cyrg.}} \endinput %% %% End of file `dt-russian.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-samin.def b/Master/texmf-dist/tex/latex/datetime/dt-samin.def index d1a6f05292e..b1827ff7d79 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-samin.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-samin.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,33 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-samin.def}[2004/10/31] +\providecommand{\monthnamesamin}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or o\dj{}\dj{}ajagem\'anu\or + guovvam\'anu\or + njuk\v cam\'anu\or + cuo\ng{}om\'anu\or + miessem\'anu\or + geassem\'anu\or + suoidnem\'anu\or + borgem\'anu\or + \v cak\v cam\'anu\or + golggotm\'anu\or + sk\'abmam\'anu\or + juovlam\'anu% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\datesamin{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\monthnamesamin[\@month]\space\number\@day.~b.\space +\number\@year}} \endinput %% %% End of file `dt-samin.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-scottish.def b/Master/texmf-dist/tex/latex/datetime/dt-scottish.def index 91ec7453585..1106e5c72f7 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-scottish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-scottish.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,32 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-scottish.def}[2004/10/31] +\providecommand{\monthnamescottish}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or am Faoilteach% +\or an Gearran% +\or am M\`art% +\or an Giblean% +\or an C\`eitean% +\or an t-\`Og mhios% +\or an t-Iuchar% +\or L\`unasdal% +\or an Sultuine% +\or an D\`amhar% +\or an t-Samhainn% +\or an Dubhlachd% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\datescottish{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day\space\monthnamescottish[\@month]\space \number\@year}} \endinput %% %% End of file `dt-scottish.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-serbian.def b/Master/texmf-dist/tex/latex/datetime/dt-serbian.def index 6318a8eb024..69b24a75938 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-serbian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-serbian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,32 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-serbian.def}[2004/10/31] +\providecommand{\monthnameserbian}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or januar% +\or februar% +\or mart% +\or april% +\or maj% +\or juni% +\or juli% +\or avgust% +\or septembar% +\or oktobar% +\or novembar% +\or decembar% +\else +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\dateserbian{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day.~\monthnameserbian[\@month]\space \number\@year}} \endinput %% %% End of file `dt-serbian.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-slovak.def b/Master/texmf-dist/tex/latex/datetime/dt-slovak.def index 85f35bb9eed..d33aebd5fb7 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-slovak.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-slovak.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,31 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-slovak.def}[2004/10/31] +\providecommand{\monthnameslovak}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{Month +numbers should go from 1 to 12}% +\or janu\'ara% +\or febru\'ara% +\or marca% +\or apr\'{\i}la% +\or m\'aja% +\or j\'una% +\or j\'ula% +\or augusta% +\or septembra% +\or okt\'obra% +\or novembra% +\or decembra% +\else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\dateslovak{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day.~\monthnameslovak[\@month]\space \number\@year}} \endinput %% %% End of file `dt-slovak.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-slovene.def b/Master/texmf-dist/tex/latex/datetime/dt-slovene.def index 7aaff7577eb..839c79bf4d3 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-slovene.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-slovene.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,31 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-slovene.def}[2004/10/31] +\providecommand{\monthnameslovene}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or januar% +\or februar% +\or marec% +\or april% +\or maj% +\or junij% +\or julij% +\or avgust% +\or september% +\or oktober% +\or november% +\or december% +\else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\dateslovene{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day.~\monthnameslovene[\@month]\space \number\@year}} \endinput %% %% End of file `dt-slovene.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-spanish.def b/Master/texmf-dist/tex/latex/datetime/dt-spanish.def index 882cd1c48f2..a45e15d7383 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-spanish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-spanish.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,51 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-spanish.def}[2004/10/31] +\providecommand{\dayofweeknameidspanish}[1]{% +\ifcase#1\relax +\or domingo% +\or lunes% +\or martes% +\or mi\'ercoles% +\or jueves% +\or viernes% +\or s\'abado% +\fi} +\providecommand{\shortdayofweeknameidspanish}[1]{% +\ifcase#1\relax +\or dom% +\or lun% +\or mar% +\or mi\'e% +\or jue% +\or vie% +\or s\'ab% +\fi} +\providecommand{\monthnamespanish}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or enero% +\or febrero% +\or marzo% +\or abril% +\or mayo% +\or junio% +\or julio% +\or agosto% +\or septiembre% +\or octubre% +\or noviembre% +\or diciembre% +\else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\datespanish{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day~de \monthnamespanish[\@month]\ de~\number\@year}} \endinput %% %% End of file `dt-spanish.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-swedish.def b/Master/texmf-dist/tex/latex/datetime/dt-swedish.def index 1abdc602ad2..869b719261c 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-swedish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-swedish.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,41 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-swedish.def}[2004/10/31] +\providecommand{\monthnameswedish}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or januari% +\or februari% +\or mars% +\or april% +\or maj% +\or juni% +\or juli% +\or augusti% +\or september% +\or oktober% +\or november% +\or december% +\else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\dateswedish{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day~\monthnameswedish[\@month]\space\number\@year}} +\DeclareRobustCommand*\datesymd{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@year-\two@digits\@month-\two@digits\@day} +} +\DeclareRobustCommand*\datesdmy{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day/\number\@month\space\number\@year} +} \endinput %% %% End of file `dt-swedish.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-turkish.def b/Master/texmf-dist/tex/latex/datetime/dt-turkish.def index 368740ed819..81704bc2caa 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-turkish.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-turkish.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,31 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-turkish.def}[2004/10/31] +\providecommand{\monthnameturkish}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or Ocak% +\or \c Subat% +\or Mart% +\or Nisan% +\or May\i{}s% +\or Haziran% +\or Temmuz% +\or A\u gustos% +\or Eyl\"ul% +\or Ekim% +\or Kas\i{}m% +\or Aral\i{}k% +\else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\dateturkish{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day~\monthnameturkish[\@month]\space\number\@year}} \endinput %% %% End of file `dt-turkish.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-ukraineb.def b/Master/texmf-dist/tex/latex/datetime/dt-ukraineb.def index 404cb8f2fb7..2217aa33269 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-ukraineb.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-ukraineb.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,31 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-ukraineb.def}[2004/10/31] +\providecommand{\monthnameukraineb}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or \cyrs\cyrii\cyrch\cyrn\cyrya\or + \cyrl\cyryu\cyrt\cyro\cyrg\cyro\or + \cyrb\cyre\cyrr\cyre\cyrz\cyrn\cyrya\or + \cyrk\cyrv\cyrii\cyrt\cyrn\cyrya\or + \cyrt\cyrr\cyra\cyrv\cyrn\cyrya\or + \cyrch\cyre\cyrr\cyrv\cyrn\cyrya\or + \cyrl\cyri\cyrp\cyrn\cyrya\or + \cyrs\cyre\cyrr\cyrp\cyrn\cyrya\or + \cyrv\cyre\cyrr\cyre\cyrs\cyrn\cyrya\or + \cyrzh\cyro\cyrv\cyrt\cyrn\cyrya\or + \cyrl\cyri\cyrs\cyrt\cyro\cyrp\cyra\cyrd\cyra\or + \cyrg\cyrr\cyru\cyrd\cyrn\cyrya% +\else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\dateukraineb{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day~\monthnameukraineb[\@month]\space\number\@year~\cyrr.}} \endinput %% %% End of file `dt-ukraineb.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-usorbian.def b/Master/texmf-dist/tex/latex/datetime/dt-usorbian.def index 50bea3ff383..1eaef2b930b 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-usorbian.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-usorbian.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,56 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-usorbian.def}[2004/10/31] +\providecommand{\monthnamenewusorbian}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or januara% +\or februara% +\or m\v erca% +\or apryla% +\or meje% +\or junija% +\or julija% +\or awgusta% +\or septembra% +\or oktobra% +\or nowembra% +\or decembra% +\else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\providecommand{\monthnameoldusorbian}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or wulkeho r\'o\v zka% +\or ma\l eho r\'o\v zka% +\or nal\v etnika% +\or jutrownika% +\or r\'o\v zownika% +\or sma\v znika% +\or pra\v znika% +\or \v znjenca% +\or po\v znjenca% +\or winowca% +\or nazymnika% +\or hodownika% +\else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{Month numbers should go from 1 to 12}% +\fi} +\let\monthnameusorbian=\monthnamenewusorbian +\DeclareRobustCommand*\newdateusorbian{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day.~\monthnamenewusorbian[\@month]\space\number\@year}} +\DeclareRobustCommand*\olddateusorbian{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\number\@day.~\monthnameoldusorbian[\@month]\space\number\@year}} +\let\dateusorbian\newdateusorbian \endinput %% %% End of file `dt-usorbian.def'. diff --git a/Master/texmf-dist/tex/latex/datetime/dt-welsh.def b/Master/texmf-dist/tex/latex/datetime/dt-welsh.def index 054f743271f..689ce5697e4 100644 --- a/Master/texmf-dist/tex/latex/datetime/dt-welsh.def +++ b/Master/texmf-dist/tex/latex/datetime/dt-welsh.def @@ -21,7 +21,7 @@ %% %% The Current Maintainer of this work is Nicola Talbot. %% -%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def. +%% This work consists of the files datetime.dtx and datetime.ins and the derived files datetime.sty, dt-american.def, dt-austrian.def, dt-bahasa.def, dt-basque.def, dt-breton.def, dt-british.def, dt-bulgarian.def, dt-catalan.def, dt-croatian.def, dt-czech.def, dt-danish.def, dt-dutch.def, dt-esperanto.def, dt-estonian.def, dt-finnish.def, dt-french.def, dt-galician.def, dt-german.def, dt-greek.def, dt-hebrew.def, dt-icelandic.def, dt-irish.def, dt-italian.def, dt-latin.def, dt-lsorbian.def, dt-magyar.def, dt-naustrian.def, dt-ngerman.def, dt-norsk.def, dt-polish.def, dt-portuges.def, dt-romanian.def, dt-russian.def, dt-samin.def, dt-scottish.def, dt-serbian.def, dt-slovak.def, dt-slovene.def, dt-spanish.def, dt-swedish.def, dt-turkish.def, dt-UKenglish.def, dt-ukraineb.def, dt-USenglish.def, dt-usorbian.def, dt-welsh.def, dt-lang.tex, dt-sampl.tex, datetime.perl. %% %% \CharacterTable %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z @@ -38,6 +38,35 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} +\ProvidesFile{dt-welsh.def}[2010/09/21] +\providecommand*{\ordinaldatewelsh}[1]{% +#1\ifnum#1=1\/\textsuperscript{a\~n}\fi} +\providecommand{\monthnamewelsh}[1][\month]{% +\@orgargctr=#1\relax +\ifcase\@orgargctr +\PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\or Ionawr% +\or Chwefror% +\or Mawrth% +\or Ebrill% +\or Mai% +\or Mehefin% +\or Gorffennaf% +\or Awst% +\or Medi% +\or Hydref% +\or Tachwedd% +\or Rhagfyr% +\else \PackageError{datetime}{Invalid Month number \the\@orgargctr}{% +Month numbers should go from 1 to 12}% +\fi} +\DeclareRobustCommand*\datewelsh{% +\renewcommand{\formatdate}[3]{% +\@day=##1\relax\@month=##2\relax\@year=##3\relax +\ifnum\@day=1\relax 1\/$^{\mathrm{a\tilde{n}}}$\else +\number\@day\fi \space a\space viz\space +\monthnamewelsh[\@month]\space\number\@year}} \endinput %% %% End of file `dt-welsh.def'. |