diff options
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 |