{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

9
votes
1answer
148 views

Does \today use the system clock or take time off of a time server?

I would like to know whether \today gets time off of a time server or the system clock, and when. Does it get the time when compiling? Upon viewing the document created?
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 ...
2
votes
1answer
752 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) ...
4
votes
1answer
335 views

Why does latex think it's tomorrow already?

Strange problem here: Brandon@forge ~/Dropbox/research.local/oil $ date Tue, Nov 27, 2012 6:14:23 PM Brandon@forge ~/Dropbox/research.local/oil $ cat <<EOF | pdflatex \documentclass{article} ...
2
votes
1answer
582 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 ...
3
votes
1answer
520 views

Typesetting time

I want to typeset time so it looks beautiful. Here's my first attempt: \documentclass[a5paper,11pt,landscape,parskip]{scrartcl} \usepackage[top=1cm, bottom=1cm, left=1cm, right=1cm]{geometry} ...
5
votes
1answer
146 views

keep svninfo package from overwriting \today?

I use the package svninfo to put the svn revision on my title page so that I know which version people are looking at when they give me feedback. My titlepage also contains the current date though ...
9
votes
1answer
534 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 ...
5
votes
1answer
380 views

\date command - replacing “Date:” by something else

I'm using \documentclass{amsart}. In the tex file, before \maketitle I write \date{22th october 2012}, and then I obtain "Date: 22th october 2012." as a result. Using \date, I want it to print ...
7
votes
1answer
224 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. ...
8
votes
2answers
266 views

Getting rid of numbers

How would I get rid of the date, and the numbers 1 and 2? My latex code is below. I cant post images as Im a new user, sorry! \documentclass[10pt]{article} \begin{document} \title{Banana Cake} ...
2
votes
2answers
881 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. ...
3
votes
1answer
213 views

How to create counters that display and increment dates in ConTeXt?

I need to create a document that has section titles named "October 1, 2012", "October 2, 2012", etc., like this: \section{October 1, 2012} This is text for the first day. \section{October 2, ...
5
votes
1answer
292 views

Format date without year

Using \formatdate from datetime, I can get a date properly formatted in multiple languages: \formatdate{3}{4}{2012} However, I would like to only use the day and month and leave the year behind. ...
4
votes
1answer
110 views

Expanding command in \addchaptertocentry

I'm using a counter to increment months in a journal and the datetime package to turn the counter into months. The months then become chapter titles in the document, so I have something like this: ...
4
votes
2answers
3k views

BibTeX month format

Please i'd like to display the month in French in the pdf, have you an idea ? @Misc{url-site, key = {site}, title = {\textit{site}}, month = jun, year = {2012}, howpublished = {URL: ...
7
votes
2answers
253 views

Extract year from parameter containing date [duplicate]

Possible Duplicate: How do I split a date? Does anyone know how to extract year from date in parameter of own macro? Namely, \themacro#1{...} where #1 contain either date already in ...
6
votes
1answer
388 views

Original date of publication in Biblatex

I am using a bibliography that contains items with the original date of publication, as well as the modern reprint. A typical entry, for instance is: @book{Mill1965, author = {Mill, John Stuart}, ...
3
votes
1answer
697 views

Passing day, month and year to my macro

I just wanted to ask, how to do something like this - I have my own macro, that needs custom date passed as arguments: \newcommand{\introduction}[3]{ This is regarding your loan application that was ...
3
votes
1answer
231 views

date not in title page, can't find isodate package

Between begin and end titlepage, I use \date{\today}. C-c C-c does not complain, but no date shows up. I saw another guy using isodate, but I don't have that package. On aptitude search ~n^texlive, ...
8
votes
1answer
400 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: ...
20
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. ...
8
votes
2answers
738 views

Date format in text and address block

In my generated letter I use \formatdate{\MDay}{\MMonth}{\MYear}. In header I specific \usepackage[nodayofweek,level]{datetime}. I have got then date like 10th May, 2012, but I would like only 10th ...
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 ?
5
votes
1answer
446 views

Creating a simple table article; multi line table headings, display date on same line as caption and double underlines

I have written my first LaTeX document, and although it broadly looks like how I want it to, I want to polish it further to give it a bit more of a profession look - alas, this si where I have come ...
1
vote
1answer
298 views

Is my \date broken?

When using \date{}, I get this weird result: (I've blurred out some parts, since they're, well, sensitive for me) Why is it doing this? I'm using isodate, but it's not the issue, I've commented it ...
6
votes
3answers
597 views

Why does \today crash in Tufte-LaTeX using 'isodate' when passed as an argument?

I'm trying to use the isodate package with Tufte-LaTeX, but get ! Illegal parameter number in definition of \reserved@a. when I use \today as an argument to certain functions (e.g. \printdate or ...
10
votes
1answer
413 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 ...
7
votes
1answer
1k 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
169 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
251 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
855 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 ...
15
votes
2answers
614 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
276 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
321 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
479 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
307 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
641 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
621 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
838 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: ...
29
votes
3answers
20k 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
200 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
1k 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
222 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
333 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
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} ...
12
votes
2answers
2k 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 ...
12
votes
1answer
819 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
674 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
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, ...