+time_t time();
+
+void datimh_(char *datec, char *timec)
+{
+ const struct tm *timeptr;
+ time_t timer;
+ int yy, mm, dd, hr, mn, sc;
+
+ timer = time((void *)0);
+ timeptr = localtime(&timer);
+ yy = (timeptr->tm_year);
+ mm = (timeptr->tm_mon) + 1;
+ dd = (timeptr->tm_mday);
+ sprintf(datec,"%4.4d-%2.2d-%2.2d",yy,mm,dd);
+ hr = (timeptr->tm_hour);
+ mn = (timeptr->tm_min);
+ sc = (timeptr->tm_sec);
+ sprintf(timec,"%2.2d:%2.2d:%2.2d",hr,mn,sc);
+}
+
diff -uNr garfield-6.33.orig/html/hlp_html.f garfield-6.33/html/hlp_html.f
--- garfield-6.33.orig/html/hlp_html.f Mon Dec 6 14:50:26 1999
+++ garfield-6.33/html/hlp_html.f Tue Dec 7 13:01:47 1999
@@ -55,7 +55,8 @@
CHARACTER*80 word, words(MAXLEVEL)
CHARACTER*34 part, parts(MAXLEVEL)
CHARACTER*7 ref
- CHARACTER*8 DATE,TIME
+ CHARACTER*10 DATE
+ CHARACTER*8 TIME
CHARACTER*1 pre_flag
INTEGER wns(MAXLEVEL)
INTEGER ios, level, prev_level, k, j
@@ -263,6 +264,7 @@
*** Initialisation for tables, lists. (RV 11/11/98)
table=.false.
list=.false.
+ deflist=.false.
list_indent=3
list_level=0
nref=0
@@ -615,11 +617,11 @@
call datimh(date,time)
time(3:3)=':'
if(k.ne.0)then
- write(10+k,'(''''/''Formatted on '',A8,'' at '',
+ write(10+k,'(''
''/''Formatted on '',A10,'' at '',
- A5,''.'')') date,time(1:5)
else
write(10+k,'(''
''/''''/
- - ''Formatted on '',A8,''.'')') date
+ - ''Formatted on '',A10,''.'')') date
endif
* End of the HTML file and close.
write(10+k,'(''