{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

28
votes
3answers
6k views

Is there a way to add a timer to a Beamer presentation?

I have seen presentations in Power Point which contain a timer. Can this be done in Beamer using a simple command, or maybe a package? If not a timer, is it possible to at least get a clock on your ...
28
votes
3answers
18k views

Date format in LaTeX

I use UKenglish package. And the \date command produces the date like so: 10th October 2011. But I want just 10 October 2011; th should be omitted. How can this be done? I tried using datetime ...
13
votes
4answers
4k views

Having a LaTeX PDF display the date the document was printed, not compiled…

I have been looking around for quite some time trying to find a way for a PDF (created using XeTeX) to adjust the date accordingly by the date it was printed - not compiled. I am familiar with \date, ...
8
votes
1answer
467 views

pgfplots data time format

I have this type of data set: Time State 22:54:14.716 5 22:54:14.716 5 22:54:14.716 5 22:54:14.716 5 22:54:14.729 4 22:54:14.919 1 22:54:14.919 1 22:54:15.128 5 I ...
24
votes
2answers
1k views

Date calculations

I'm building a LaTeX document that helps me to formulate quotations for my customers. Since I decided to offer monthly recurring payments I'd like to have payment dates calculated automatically ...
34
votes
2answers
2k views

How to implement a \tomorrow in latex

I was asked how to implement a \tomorrow macro in TeX/LaTeX. While I could come up with a reasonably good solution, working for one document class, I don't see how that could be achieved in a document ...
19
votes
1answer
2k views

Disable month in biblatex bibliography?

Currently my bibliography items are printed like this: R. B. Griffiths, Nonanalytic Behavior Above the Critical Point in a Random Ising Ferromagnet, Physical Review Letters 23 (July 1969), pp. ...
23
votes
3answers
6k views

Referring to dates other than \today

Is there a package that allows one to work with dates in the following way: just as \date shows today's date, I would like to have a command that dates the document 7 days from today. Also, since I ...
17
votes
3answers
1k views

Range of Dates (1999-01 — 2012-12)?

How to typeset range expressed with dash of two ISO8601 dates ? 2010-01--2012-03 or 2010-01---2012-03 or another option ?
11
votes
3answers
797 views

How do I split a date?

I need to split a date (German format) and store its single elements in variables (to use it in TikZ-calendar). A German formatted date looks like 23.01.2012 (Day.Month.Year), so I could use the dots ...
7
votes
5answers
1k views

Date of file creation

When I write my notes, (I actually use lyx but that does not matter) I like to add a header with the name of file and the date the file was compiled. This I do using fancyhdr package and ...
5
votes
1answer
2k views

Date plot using pgfplots with odd tick label

How do I make the time label in the following image appear as "10:00" (i.e. 10 o'clock) rather than the unexpected and unwelcome "09:60"? Here's the code that I am using: \documentclass{beamer} ...
2
votes
1answer
520 views

datetime and datenumber package conflict?

Background Trying to include a date two days in the future from when the content was generated. Problem The following results in an empty day name: \usepackage{datetime} \usepackage{datenumber} % ...
1
vote
1answer
63 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} ...
1
vote
1answer
127 views

Renaming date in revtex4

I found the similar question and answer for renaming some of the keywords, but they were for revtex4-1. Since my document is giving me strange errors when I'm using revtex4-1, and not when I'm using ...
56
votes
2answers
61k views

Omitting the date when using \maketitle

I'm using the \author and \title commands to produce a title with \maketitle. I also know that there is a \date command to specify the date of my work. However, if I omit \date, \maketitle will ...
39
votes
2answers
14k views

How can I typeset the date/time at compile time?

For printed drafts of my papers, I would like to add a timestamp on every page with the date/time when the document was last compiled. Is there any LaTeX command that produces the current date/time at ...
29
votes
3answers
2k views

Date format: YYYY-MM-DD

Currently I put the date in my document using: \date{\today} How do I display the date in the YYYY-MM-DD format?
15
votes
2answers
585 views

What is the XeTeX equivalent of \pdfcreationdate?

I need the time to 1-second resolution. datetime uses \pdfcreationdate for this, but only under pdf(La)TeX. As a result under XeLaTeX, this: \usepackage{datetime} ... ...
22
votes
4answers
548 views

Day of the year

I'm using the day of the year a lot in my documents and I wonder if I can have LaTex calculating it for me? Example: 2013178 where 2013 is (surprise) the current year (which I know could be achieved ...
12
votes
3answers
652 views

Macro for week number

Is there a macro or package to calculate the ISO week number or alternative can someone help me with one?
9
votes
1answer
109 views

Make an index of historical time periods

I'm writing my thesis & I want to make an index with centuries, years, month, day, event & historical periods. So I try to build some commands, but unsatisfactory, I'm looking for your help. ...
9
votes
1answer
369 views

Require a certain (or later) version of a package?

Is there a way to enforce that a certain version, or a later version, of a package is loaded when building the document? I've found that compiling a document on another platform, where the package ...
6
votes
1answer
95 views

Add (n) working days to a specific date

My g-brief will contain something like "I have noted a deadline for your answer of ten working days until...". Is there a package or way to add n working-days (ie. mon-fri, let's not over complicate ...
2
votes
4answers
219 views

Can (La)TeX compare the time stamps of two external files?

Scenario I have a bunch of standalone PSTricks files. Each of those files can be compiled by latex-dvips-ps2pdf-pdfcrop-pdftops to produce a PDF image. I have made a batch file to do ...
17
votes
2answers
658 views

Handling different time zones

I'm looking for a way to handle date/times with different time zones. For example in svn-multi and filemod a date and time with a timezone is returned. I like to be able to compare times in different ...
14
votes
3answers
463 views

How to make time-dependent code?

I would like to create a command \ifafter{year}{month}{day}{yes}{no} so that if the current date is after year/month/day, the command would produce yes, and otherwise produce no. I came up with a ...
2
votes
2answers
806 views

Clock with powerdot and beamer

I would like to use powerdot to compose a document. I want to have a clock in the pdf file, but it does not show. If I am using Beamer, then how can I have a clock as in powerdot? Please help me. ...
10
votes
3answers
281 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? ...
9
votes
2answers
5k views

\today month as text

I have this code: \documentclass{article} \usepackage[a5paper]{geometry} \usepackage[ddmmyyyy]{datetime} \renewcommand{\dateseparator}{.} \begin{document} \today \end{document} Prints: How can I ...
8
votes
1answer
367 views

Getting origyear to work in biblatex

I have just switched from natbib to biblatex, because I wanted to add translator entries to my bibliography. I am now trying to get origyear to work. Before my entry was like this: ...
7
votes
1answer
128 views

biblatex: getting rid of ›nodate‹ where it's inappropriate

biblatex now has the habit of printing an (n.d.) ("no date") when a publication doesn't come with a date of publication specified, as is the case sometimes with grey literature and other obscure ...
7
votes
1answer
207 views

Are the datetime package and the memoir class known to conflict?

Using the \formatdate macro from the datetime package within a \date definition seems to break when using the memoir class. Is this just something strange that I'm doing because it seems reasonable. ...
2
votes
1answer
171 views

Datetime capitalize month

I'm using the datetime package. How could I have a date format with the month name in capital letters? \usepackage{datetime} % some code here \newdateformat{mifecha}{Bilbao, a \THEDAY~de ...
2
votes
1answer
137 views

Inserting day of the week into custom datetime format

I'm using a custom datetime format and a custom environment to generate a list of dates (for a course syllabus), and would like to modify it a bit more to add the abbreviated day name after the ...
2
votes
1answer
611 views

How to generate the date in portuguese?

TexStudio will generate the date like "December 8, 2012", and I need it to generate in Portuguese, like "8 de Dezembro de 2012". How can I configure that? (isodate package doesn't contain Portuguese) ...
2
votes
1answer
525 views

Month Name in Upper case [duplicate]

Possible Duplicate: How do I “unprotect” an argument? I'm trying to print date at title page of a document as NOVEMBER 2012. I'm using the datetime package to format the date as month ...