{datetime} is about either setting time stamps for your document or handling time data in {diagrams} (e.g., using {pgfplots}). If you are setting the date/time for a title, include the {titles} tag.

learn more… | top users | synonyms

6
votes
1answer
42 views

Allow line breaks in date ranges?

Code: \documentclass[10pt,paper=14.8cm:21cm,BCOR=10mm,DIV=12,parskip=half] {scrbook} \usepackage[T1]{fontenc} \usepackage[german]{babel} \usepackage[utf8]{inputenc} \begin{document} Markus hat den ...
2
votes
1answer
31 views

Selectively citing full month name with biblatex-ieee?

Consider this MWE: \documentclass{article} \usepackage[ bibencoding=utf8, backend=biber, natbib, style=ieee, % this abbreviates month always! dateabbrev=true, % but this (alone) seems to ...
5
votes
2answers
54 views

Does termcal work with datetime?

I'm using both datetime and termcal together in a document, but this seems to cause an error. \documentclass[12pt,letterpaper]{article} \usepackage{datetime,termcal} \begin{document} ...
0
votes
0answers
27 views

\texorpdfstring and \today

I was trying to put multiple author names in a beamer slide using \titlepage. I came across Beamer - Multiple Authors - Formatting the title page, which help me a lot. However, I couldn't understand ...
1
vote
1answer
49 views

How should multiple time formats be used?

I want to have a command to display the current time in a few different formats, specifically, the following: 2015-05-15 15 May 2015 122200 2015-05-15T122200 I'm not sure how to do this properly ...
4
votes
1answer
60 views

paper - abstract - manually change the date

In my paper I have a sole page for the abstract. There I state the title of my paper, my name and the abstract. However, it marks also the date. As it marks the actual (today) date, I'd like to know ...
1
vote
0answers
46 views

xelatex problem with datetime

I have a datetime problem if I try to compile my latex file. It is something with datetime, but I cant figured it out, what it is. I have append the log How Can solve the problem of solving the ...
2
votes
0answers
43 views

Australian date formatting with Biblatex and APA style?

In my references I'd like my dates to be written as "day month year". I've been able to achieve this following the top answer here Formatting dates “day month year” with biblatex. However, as soon as ...
33
votes
7answers
2k views

Generate analog clock with numbered face, add seconds, Roman numerals

Looking at the excellent answers here, I can't help wondering how I can accomplish two apparently simple modifications: I wanted to be able to generate a traditional Roman-number clock; It would be ...
1
vote
1answer
74 views

Equivalent of `newdateformat` in `datetime2`?

The datetime package has recently been withdrawn and replaced by datetime2. Any idea for the equivalent of newdateformat in datetime2 ?
1
vote
1answer
58 views

Generate a sequence of dates in LaTeX

In LaTeX, I'd like to generate a sequence of dates, which repeats on Monday and Wednesday every week. The sequence should look like: Mon 3/30 Wed 4/1 Mon 4/6 Wed 4/8 ... I have tried to use the ...
2
votes
0answers
51 views

Is there a time field where I can fill in the time I want? [closed]

I am going to add a web page to the bibliography, and therefore I need to add the time. I did not add the web page in latex when I got it from the web, so I need to add the time I actually used the ...
6
votes
1answer
117 views

Insert arbitrary date

I want to simply insert an arbitrary date (in my case March 16, 2015) in a way that does not hard code the date format. That is, I want something like \insertdate{<year}{<month>}{day} For ...
1
vote
1answer
118 views

How to get pgfgantt today to be set to the \today macro

I want the pgfgantt chart to automatically update the "today" line so that it always shows \today when compiled. The problem is that though I am using time slot format=isodate and have set the ...
9
votes
1answer
289 views

ISO Date format with Biblatex/Biber?

I'm using biblatex/biber with the biblatex-chem package to make a list of citations for group meeting. This works quite well, but I wanted to add a recent C&EN article to it, since it is quite ...
1
vote
0answers
36 views

TeX yells at me that the `xxivtime` option in `datetime` can't be found, but it's there

I've been using \usepackage[ddmmyyyy,xxivtime]{datetime} to timestamp compilations of a document somewhat longer than this one: \documentclass{article} \usepackage[ddmmyyyy,xxivtime]{datetime} ...
2
votes
2answers
360 views

bibtex - Change format of urldate

I have the problem that I use the citation manager Citavi and it can only export in the format urldate = {dd.mm.yyyy}. However Bibtex needs the format urldate = {yyyy-mm-dd}. It is not really ...
3
votes
2answers
73 views

package [datetime] not working with [titling]

Below is an SSCCE: \documentclass{report} \usepackage{datetime} %\usepackage{titling} %if this line is uncommented compilation fails \begin{document} \newdate{date2}{08}{02}{2015} ...
5
votes
2answers
126 views

How should I parse an ISO date in expl3?

Assuming date is ISO-formatted (YYYY-MM-DD), how can I parse out its individual parts into variables? \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \int_new:N \mytest_date_day_int ...
2
votes
1answer
61 views

Dynamic date in section and TOC

I am trying to dynamically insert a custom date within a section title like so: (somewhere in preamble): \newdate{prevdate}{14}{01}{2015} \date{\displaydate{prevdate}} (somewhere in document): ...
1
vote
1answer
43 views

how to insert the date (today) in the middle of a document

So the question is simple: Instead of having the date in the title, how do you manage to put the current date in the middle of the text, within the document? Thanks
10
votes
3answers
918 views

How do I print out dates in YYYY-MMM-DD format?

Is there an easy way to print out dates in the format of 2014-Jan-15. Being in North America, Canada not the USA, there are too many date formats in use. To remove any chance of confusion the ...
0
votes
2answers
75 views

Problem with nodate and date sorting in author-date biblatex

I have problems (1) nodate, and as a result with (2) datesorting with biblatex 2.9a, Biber 1.8, pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex) (1) nodate I cannot ...
4
votes
1answer
88 views

Calculations with dates

I want to make a table where I describe every week some facts, in two specific days. These days are fixed in the table, but they are selected arbitrarily. I would like to print the dates of each date ...
6
votes
1answer
202 views

How to add and subtract hours and minutes

Is there a package which adds and subtracts hours and minutes. I mean, I would like to define \newcommand{\time}{10:00} and use it in the document as \time + 00:20 = 10:20 \time + 01:30 = 11:30 My ...
4
votes
1answer
78 views

Using currfile and Datetime to format a diary page

To create something like a diary, I am using a number of input files within 2 directories a MONTH directory named 01-12 and a day directory within each month...01-31 so 12/ (December) which has a ...
5
votes
2answers
134 views

datetime: date without year

This question is similar to Format date without year, but I can't deduce the answers. I would like to delete the year in a date, \documentclass{article} \usepackage[spanish,mexico]{babel} ...
3
votes
1answer
72 views

Why does \the\day not work in my macro?

(TeX-Code!) I have defined a TeX-macro to compare date and time values. Everything works well, until I put in \the\day, to call the current value of it. Can someone imagine, why this works with all ...
5
votes
1answer
332 views

The first 9 days of the month as a string

Is there a way to show the first 9 days of the month as 01, 02, 03 etc. \the\day prints 1, 2, 3 etc.
4
votes
2answers
77 views

How can I keep a cellcontent static?

I have defined a TeX-macro to compare date and time information. Within a single box, there is no problem, but if used in a table, in different columns or lines, as shown below, the result is 0. ...
3
votes
2answers
178 views

Compute the difference between two time points on different dates

This is a follow-up question to How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?. Consider the code from David's excellent answer here: ...
8
votes
2answers
2k views

Month/Year Format in Latex

This should be a easy question, but I didn't find answer from googling. The date format I wan is: Month(letter), Year(numerical). For example, I want: November, 2014. Of course, I can manually achieve ...
1
vote
1answer
132 views

Format date {yyy-mm-dd} as “mmm 'yy”

I have been struggling with this for some time, with combinations of the isodate and datetime packages, without success. I would like to create a macro that receives an input in the format ...
3
votes
1answer
100 views

\shortmonthname for German in datetime

It seems that if you set your document to ngerman, datetime currently only supports abbreviated names for the days of the week (Mo, Di, Mi …), but not for month names (Jan, Feb, Mär …). Is there ...
2
votes
2answers
87 views

What macros do I have to invoke to get the day of month, month, and year?

What macros do I have to invoke to get the day of month, month, and year of the current date? I am a beginner in LaTeX.
2
votes
1answer
119 views

“Dimension too large” while working with serial date numbers

I export plots using matlab2tikz and pgfplots from MATLAB to TeX. Most of my plots contain "serial date numbers", which are the days since January 0, 0000. As you can guess, the numbers get quite ...
13
votes
2answers
923 views

How to compute the difference between two time points (e.g., 11:30 am and 01:20 pm => 110 min)?

Is there a simple way to compute the difference between two times (same day), so 11:30 am and 01:20 pm should lead to 110 min (or 1h 50min), for example? I saw the datenumber package but it only seems ...
5
votes
1answer
61 views

datetime causes incorrect date format even when babel is loaded first

According to the package manual, datetime supports language-sensitive date formats provided that babel is loaded first. The example on page 2 is: \usepackage[francais]{babel} \usepackage{datetime} ...
0
votes
1answer
94 views

print hour & minutes in french style

I'm using babel, datetime & siunitx but I don't see an automatic way to mark and to write time in the french style. It's possible with plain hour with datetime: SI{18}{\hour} -> 18 h. But for ...
2
votes
1answer
77 views

fmtcount problems with french & newcommand

I built & used a complex command \qd this spring who requires datetime package and therefore fmtcount. I start again to use my command these days, but occurred some changes. I suspect updates of ...
6
votes
2answers
162 views

How to compare two times from datetime package

I have this code \documentclass{article} \usepackage{datetime} \begin{document} \currenttime \par \formattime{18}{0}{0} \end{document} and want to compare these times if the time is before or ...
0
votes
1answer
91 views

What is the time for the beginning of a day? \formattime{00}{00}{00} or \formattime{24}{00}{00}

I have set \settimeformat{ampmtime}, and I want to print a time which is the very beginning of the day. For \formattime{00}{00}{00}, it gives me 12:00am; for \formattime{24}{00}{00}, it gives me ...
0
votes
0answers
77 views

Using macros in Memoir chapter for a Diary

I'm trying to create an automatic chapter head which displays the day of the week and date (kind of like a diary entry) I have a directory called "august" within which is a file called 01.tex. The ...
3
votes
1answer
418 views

\usepackage's phantom \ifnum [duplicate]

So I'm trying my hand at creating some packages (on WriteLaTeX, because my Surface can't run TeX1), and have run into a rather fascinating problem. My packages just won't load; they complain about ...
4
votes
1answer
165 views

How to use Eastern Armenian month names instead of Western Armenian?

When using for example the datetime package and printing month names, LaTeX uses Western Armenian month names: Յունուար Փետրուար Մարտ Ապրիլ Մայիս Յունիս Յուլիս Օգոստոս Սեպտեմբեր Հոկտեմբեր Նոյեմբեր ...
2
votes
1answer
135 views

Time calculations

Based on a given starting time, I'd like to automatically calculate a time table. Based on https://groups.google.com/forum/#!topic/de.comp.text.tex/BQrRUYmDrHw I put the following MWE together: ...
11
votes
2answers
556 views

Advancing \today by x days [duplicate]

New LaTex user here, hoping you can help me. I am drafting a letter, the submission date of which I do not yet know. For this reason I am dating it using \today. However, in the text of the letter, ...
1
vote
1answer
264 views

Problem working fontspec, babel and datetime with cyrillic

I have discovered that fontspec with russian babel settings doesn't work with datetime package. I tried to compile such code: \documentclass[a4paper,11pt]{article} \usepackage[T2A]{fontenc} ...
4
votes
2answers
956 views

\the\year in Roman and \the\month in text

I would like to get the month in text e.g., June and the year in Roman, e.g. MMXIV when I call \the\month and \the\year I also would like to avoid using any external package (I found some related ...
11
votes
3answers
477 views

Change \the\year

Is it possible to make LaTeX believe that the current year is 2012, so that \the\year prints 2012? \documentclass{article} \begin{document} % What to do so that the following prints 2012? ...