diff options
author | Karl Berry <karl@freefriends.org> | 2015-04-10 20:55:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-04-10 20:55:01 +0000 |
commit | 0d527272b84ca6a34b5ea36669490b69238341de (patch) | |
tree | 44fd760eb9c842a3a2868c8ebefef70ce5c60fad /Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex | |
parent | 8c3034b5cd54c82925a751f02ee0d81e13b063fa (diff) |
datetime2-italian (10apr15)
git-svn-id: svn://tug.org/texlive/trunk@36761 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex b/Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex new file mode 100644 index 00000000000..ba3cf153c99 --- /dev/null +++ b/Master/texmf-dist/doc/latex/datetime2-italian/sample/tomorrow.tex @@ -0,0 +1,47 @@ +\documentclass[italian]{article} +\usepackage{pgfkeys,pgfcalendar} + +\newcount\pgfdatecount +%\newcommand{\tomorrow}{% +%\pgfcalendardatetojulian{\year-\month-\day+1}{\pgfdatecount} +%\pgfcalendarjuliantodate{\the\pgfdatecount}{\myyear}{\mymonth}{\myday} +%\pgfcalendarmonthname{\mymonth}\space\myday,\space\myyear% +%} +\newcount\myct +\newcount\datecount +\newcommand{\tomorrow}{% + \DTMsavenow{mydate} + \DTMsaveddateoffsettojulianday{mydate}{365}{\myct} + \DTMsavejulianday{mydate}{\number\myct} + \DTMusedate{mydate} +} + +\newcommand{\yesterday}{% + \DTMsavenow{mydate} + \DTMsaveddateoffsettojulianday{mydate}{-1}{\myct} + \DTMsavejulianday{mydate}{\number\myct} + \DTMusedate{mydate} +} +\newcommand{\myday}[1]{% + \DTMsavenow{mydate} + \DTMsaveddateoffsettojulianday{mydate}{#1}{\myct} + \DTMsavejulianday{mydate}{\number\myct} + \DTMusedate{mydate} +} +\usepackage[calc,useregional]{datetime2} +\begin{document} + +\today~ is the day before tomorrow.\par + +\tomorrow~ is the day after today. + +\yesterday + +\myday{10} +%\DTMuse{\tomorrow} +%\pgfcalendardatetojulian{\year-\month-\day+1}{\pgfdatecount} +%\DTMsavejulianday{mydate}{\the\pgfdatecount} +%\DTMusedate{mydate} + + +\end{document}
\ No newline at end of file |