diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/piff/time.sty |
Initial commit
Diffstat (limited to 'macros/latex/contrib/piff/time.sty')
-rw-r--r-- | macros/latex/contrib/piff/time.sty | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/macros/latex/contrib/piff/time.sty b/macros/latex/contrib/piff/time.sty new file mode 100644 index 0000000000..df9f094031 --- /dev/null +++ b/macros/latex/contrib/piff/time.sty @@ -0,0 +1,45 @@ +\def\filename{time.sty} +\def\fileversion{1.0a} +\def\filedate{15 Feb 1995 10:55:01 BST} +%% This is time.sty +%% Copyright (C) 1995 Mike Piff +%% +%% This file is placed in the public domain. No provision is made for +%% support of the use of the facilities herein. +%% +%% M.Piff@sheffield.ac.uk +%% +\typeout{\filename\space v\fileversion, (C) Copyright Mike Piff, \filedate} +\NeedsTeXFormat{LaTeX2e}[1995/12/01] +\ProvidesPackage{time} +\def\now{{% + \def\Time{3}% + \def\Hour{4}% + \def\Minute{5}% + \count\Time=\time\relax + \ifnum\count\Time=0 + \count\Time=1440 %%force 12pm + \fi + \count\Hour=\count\Time\relax + \divide\count\Hour by 60\relax%%hours past midnight + \count\Minute=\count\Hour\relax + \multiply\count\Minute by -60\relax + \advance\count\Minute by \count\Time\relax %%minutes past hour + \ifnum\count\Hour=0 + \count\Hour=12 + \else + \ifnum\count\Hour>12 + \advance\count\Hour by-12 + \fi + \fi + \the\count\Hour\relax:% + \ifnum\count\Minute<10 + 0% + \fi + \the\count\Minute\relax + \ifnum\count\Time>720 + pm% + \else + am% + \fi +}} |