Debian Codegraph @

texmf-dist/tex/latex/koma-script/scrtime.sty

raw
1 %%
2 %% This is file `scrtime.sty',
3 %% generated with the docstrip utility, extended by scrdocstrip.
4 %%
5 %% The original source files were:
6 %%
7 %% scrkernel-version.dtx (with options: `package,scrtime')
8 %% scrtime.dtx (with options: `package,scrtime,identify')
9 %% scrkernel-basics.dtx (with options: `load')
10 %% scrtime.dtx (with options: `package,scrtime,option')
11 %% scrtime.dtx (with options: `package,scrtime,body')
12 %% scrlogo.dtx (with options: `logo')
13 %%
14 %% Copyright (c) 1994-2026 Markus Kohm [komascript at gmx info]
15 %%
16 %% This file was generated from file(s) of the KOMA-Script bundle.
17 %% ---------------------------------------------------------------
18 %%
19 %% It may be distributed under the conditions of the
20 %% LaTeX Project Public License in the version distributed together
21 %% with KOMA-Script, see file `lppl.txt' or `lppl-de.txt'.
22 %%
23 %% This file may only be distributed together with a copy of the
24 %% KOMA-Script bundle. You may however distribute the
25 %% KOMA-Script bundle without all such generated files. See also
26 %% `lppl.txt' or `lppl-de.txt' for additional information.
27 %%
28 %% The list of files belonging to KOMA-Script distribution is given in
29 %% the file `MANIFEST.md'. See also `lppl.txt' or `lppl-de.txt' for
30 %% additional information.
31 %%
32 %% If this file is a beta version, you may not be allowed to distribute
33 %% it. Look at the comments below to see if this is the case.
34 %%
35 %% English and German manuals are part of KOMA-Script bundle.
36 %% ----------------------------------------------------------
37 %%
38 %% See `README'.
39 %%
40 %% The KOMA-Script bundle (but maybe not this file) was based upon the
41 %% LaTeX 2.09 Script family created by Frank Neukam 1993 and the LaTeX2e
42 %% standard classes created by The LaTeX3 Project 1994-1996. You can
43 %% find a complete unmodified copy of LaTeX2e at
44 %% <http://mirror.ctan.org/tex-archive/macros/latex/base/>.
45 %%
46 %%% From File: $Id: scrkernel-version.dtx 4261 2026-02-02 09:02:14Z kohm $
47 \providecommand*{\@CheckKOMAScriptVersion}{%
48 \begingroup
49 \ExplSyntaxOff
50 \@@CheckKOMAScriptVersion
51 }
52 \providecommand*{\@@CheckKOMAScriptVersion}[1]{%
53 \@ifundefined{KOMAScriptVersion}{%
54 \gdef\KOMAScriptVersion{#1}%
55 }{%
56 \def\@tempa{#1}%
57 \ifx\KOMAScriptVersion\@tempa\else
58 \GenericWarning{\space\@spaces\@spaces\@spaces\@spaces}{%
59 Version warning:
60 \noexpand\KOMAScriptVersion is
61 `\csname KOMAScriptVersion\endcsname',\MessageBreak
62 but `#1' was expected!\MessageBreak
63 You should not use classes, packages or files
64 from\MessageBreak
65 different KOMA-Script versions\@gobble
66 }%
67 \fi
68 }%
69 \endgroup
70 }
71 \@CheckKOMAScriptVersion{2026/02/02 v3.49.2 KOMA-Script}%
72 \providecommand*{\scr@pkgextension}{\@pkgextension}
73 \AtBeginDocument{%
74 \let\scr@pkgextension\@pkgextension
75 }
76 %%% From File: $Id: scrtime.dtx 4145 2025-05-13 16:54:14Z kohm $
77 \NeedsTeXFormat{LaTeX2e}[2022/06/01]
78 \ProvidesPackage{scrtime}[%
79 2026/02/02 v3.49.2 KOMA-Script
80 package
81 (time of LaTeX run)%
82 ]
83 %%% From File: $Id: scrkernel-basics.dtx 4198 2025-08-15 09:19:27Z kohm $
84 %%% (run: load)
85 \RequirePackage{scrkbase}[\KOMAScriptVersion]
86 %%% From File: $Id: scrtime.dtx 4145 2025-05-13 16:54:14Z kohm $
87 \newif\if@Hxii
88 \KOMA@ifkey{12h}{@Hxii}
89 \@ifundefined{KOMA@DeclareDeprecatedOption}{}{%
90 \KOMA@DeclareDeprecatedOption[scrtime]{24h}{12h=false}%
91 }
92 \KOMAProcessOptions\relax
93 %%% From File: $Id: scrtime.dtx 4145 2025-05-13 16:54:14Z kohm $
94 \def\thistime{%
95 \kernel@ifstar
96 {\let\@tempif\iffalse\@thistime}
97 {\let\@tempif\iftrue\@thistime}}
98 \newcommand*{\@thistime}[1][:]{%
99 \begingroup
100 \@tempcnta\time\divide\@tempcnta60\multiply\@tempcnta60
101 \@tempcntb\time\advance\@tempcntb-\@tempcnta
102 \divide\@tempcnta60
103 \if@Hxii\ifnum\@tempcnta>12 \advance\@tempcnta-12 \fi\fi
104 \the\@tempcnta{#1}\@tempif\ifnum\@tempcntb<10 0\fi\fi\the\@tempcntb%
105 \endgroup}
106 \newcommand*{\settime}[1]{\renewcommand*{\@thistime}[1][]{#1}}
107 %%% From File: $Id: scrlogo.dtx 4032 2023-04-17 09:45:11Z kohm $
108 \RequirePackage{scrlogo}
109 \endinput
110 %%
111 %% End of file `scrtime.sty'.