Article View: comp.text.tex
Article #879Date as Stardate (as in Star Trek)
From: Capt.J.T. Kirk
Date: Thu, 09 Apr 1992 09:49
Date: Thu, 09 Apr 1992 09:49
28 lines
1552 bytes
1552 bytes
Here is a '\stardate' macro for all Star Trek freaks
(and naturally other 'normal' people too)
%-Cut here-
%---- Definition for Stardate as in Star Trek (used for 'normal' life) ----
%---- Written 9203.26 by A.Minidis (Capt. J.T. Kirk) ----
%---- USAGE: ' \stardate ' ----
%---- Result: Stardate YYMM.DD ; YY=year, MM=month, DD=day ----
%---- KEEP ON TREKKING ----
\newcount\sdyear
\sdyear=\year \advance\sdyear by -1900
\def\stardate{%
{\sc Stardate \number\sdyear %
\ifnum \month<10 0\fi%
\number\month%
.ifnum \day<10 0\fi%
\number\day}}
%--------------------------------------------------------------------------
%-and cut here-
if anybody should have a suggestion how to imrove this macro, I'd appreciat it.
Alexander <minidis@urz.unibas.ch>
----------------------------------------------------------------
-- Scotty, beam me up, there`s no intelligent life down here! --
-- (Capt. J.T. Kirk, USS Enterprise) --
----------------------------------------------------------------
Technical Details
Message-ID:
<1992Apr9.104917.14112@urz.unibas.ch>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!mips!darwin.sura.net!Sirius.dfn.de!chx400!urz.unibas.ch!minidisShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!mips!darwin.sura.net!Sirius.dfn.de!chx400!urz.unibas.ch!minidis From: minidis@urz.unibas.ch ( Capt.J.T. Kirk ) Newsgroups: comp.text.tex Subject: Date as Stardate (as in Star Trek) Message-ID: <1992Apr9.104917.14112@urz.unibas.ch> Date: 9 Apr 92 10:49:17 MET Organization: University of Basel, Switzerland Lines: 28