🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99540

24 hour time format in loadst.c

#99540
From: Juha Takala
Date: Tue, 14 Aug 1990 12:31
29 lines
1417 bytes
I have made a small change into .../emacs-18.55/etc/loadst.c:

*** loadst.c	Wed Apr 19 04:24:59 1989
--- loadst.c.new	Tue Aug 14 15:18:57 1990
***************
*** 211,220 ****
--- 211,224 ----
        time (&now);
        nowt = localtime (&now);
  
+ #ifdef AMPM
        printf ("%d:%02d%s ",
  	      ((nowt->tm_hour + 11) % 12) + 1,
  	      nowt->tm_min,
  	      nowt->tm_hour >= 12 ? "pm" : "am");
+ #else /* not AMPM */
+       printf ("%d:%02d ", nowt->tm_hour, nowt->tm_min);
+ #endif /* not AMPM */
  
  #ifdef LOAD_AVE_TYPE
        load = load_average (kmem);

Then I compiled the file with AMPM #defined.  This is how *I* like to
see the time on status line.
-- 
Juha Takala  (jta@sah.vtt.fi)  tel.: +358-0-456 6415   fax: +358-0-435 67014
Technical Research Centre, Laboratory of Electrical and Automation Engineering 
Otakaari 7 B, 02150 Espoo, FINLAND
Technical Details
Message-ID: <1990Aug14.123132.8635@nic.funet.fi>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!tut!funic!jta

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,60223f269c557711,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-08-14 15:54:31 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!tut!funic!jta
From: jta@nic.funet.fi (Juha Takala)
Newsgroups: gnu.emacs.bug
Subject: 24 hour time format in loadst.c
Message-ID: <1990Aug14.123132.8635@nic.funet.fi>
Date: 14 Aug 90 12:31:32 GMT
Organization: Finnish Academic and Research Network Project - FUNET
Lines: 29
Posted: Tue Aug 14 13:31:32 1990