{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

7
votes
1answer
882 views

pgfplots dateplot: automated labels on full hours?

I have some data as a function of time. I plot it using dateplot from the pgfplots package. I would like to have x labels in hours and minutes. For every day, I would like to have an additional ...
0
votes
1answer
160 views

date interpretation from numbers to regular

I was wondering if there exists such a package, or an option, to write the date in the form 31.1.2012 for example, and then have LaTeX present it as "January 31, 2012". I am actually using LyX and ...
6
votes
2answers
224 views

How to get datetime to print “12.34pm”, not “12:34 noon”, at 34 minutes past noon?

When it uses the 12-hour clock, datetime prints "noon" instead of "pm" when the time is between 12 noon and 1pm. Probably a bug rather than by design? How can it be made to print "12.34pm" rather ...
11
votes
3answers
712 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 ...
14
votes
2answers
536 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} ... ...
5
votes
1answer
261 views

How to define and use the date format “1 Jan 2012 7.03am”

How can I define and use the date format "1 Jan 2012 7.03am"?
2
votes
1answer
304 views

Date in CV in English

I'm translating my CV from Finnish to English. How can I change the date when I compile the file? It says 19. tammikuuta 2012 in Finnish. \documentclass[a4paper]{amsart} \usepackage[latin1]{inputenc} ...
14
votes
3answers
452 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 ...
9
votes
1answer
256 views

Time of the day or time period using the package siunitx

I would like to display the time of the day like 18h30 or 18h30m with siunitx. Is there a proper way to display time and time intervals? I have read some discussions on the Mailing-List, but it seems ...
4
votes
2answers
502 views

The command \year gives a number instead of text. How is it done?

As I know, in the command sequence \the\year, \year gives a number, and \the converts it to text. What I don't understand is, how to make a command that results in a number but not a piece of text ...
2
votes
1answer
574 views

Timer in beamer footline [duplicate]

Possible Duplicate: Is there a way to add a timer to a Beamer presentation? Is there a way to add a timer at the footline of a beamer presentation that will tell us how long the ...
5
votes
1answer
686 views

Insert relative date and time specifications?

How can I specify a relative date and let LaTeX insert the resulting absolute one? For example like this: \somedatecommand{next thursday} Which should result in: Thursday, 20.10.2011 Or: ...
24
votes
3answers
15k 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 ...
2
votes
1answer
176 views

Customize displayed time zone with svn-multi and \svnfiledate

When using the svn-multi package together with \svnfiledate it returns 2011-10-05 22:18:31 +0200 (Wed, 05 Oct 2011); Is there some way of customization to get the following only: 2011-10-05 ...
3
votes
1answer
937 views

Setting the date in an elsarticle

Consider the following elsarticle document: \documentclass[preprint,12pt]{elsarticle} \journal{Journal of something} \begin{document} \begin{frontmatter} \title{My article} \begin{abstract} Summary ...
2
votes
4answers
210 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 ...
5
votes
2answers
320 views

Format the date from vc bundle as \today

I'm using the vc bundle to feed \date with the date from the latest git commit. Is there a way to format this date in the same format as the output from \today? I know of the different date formats in ...
5
votes
1answer
1k 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} ...
12
votes
2answers
1k views

Is there a command to get the name of the current day of the week?

I'm currently using \date{\today} to put the current date at the top of my document. However, I would like the date to read "Friday, May 13, 2011" instead of just "May 13, 2011". Is there a command ...
10
votes
1answer
719 views

Difference between two dates

Is there a macro that calculates the year and months from a given start date and the current date. So let's say I have 05/02/2010 (the start date), then it should do the following: Today - ...
17
votes
2answers
635 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 ...
13
votes
4answers
3k 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, ...
6
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 ...
18
votes
2answers
722 views

Automated age calculation

How can I calculate my age at compile-time in LaTeX? Something like: I'm \myage{day}{month}{year} years old. would be most awesome.
11
votes
3answers
606 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?
22
votes
3answers
5k 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 ...
2
votes
1answer
476 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} % ...
18
votes
2answers
2k views

Write date, time, and time zone

Background Looking to include the current date, time, and timezone within a PDF. Problem The datetime package does not provide a macro for the current timezone. Question How would you write a ...
4
votes
1answer
278 views

Trouble using \formatdate inside \caption

I am having trouble formatting a date inside a caption using the datetime package. I'm told "Incomplete \iffalse; all text was ignored after line 6. \documentclass{article} \usepackage{datetime} ...
23
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 ...
49
votes
2answers
51k 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 ...
35
votes
2answers
12k 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 ...
27
votes
3answers
5k 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 ...
26
votes
3answers
6k views

How to insert 4 digit year that shows up in \today?

Using the LaTeX command \today, I can insert the current date. Is there any way to insert the current year with a simple command? All I want is the simple 4 digit year that shows up in \today.
6
votes
3answers
29k views

Insert date set with \date command

I searched all morning to do this. I want to insert in my custom title page the date, author, title set with the following commands \date{The date} \author{Me \and Other} \title{the document title} ...