Could you please include support for representation of dates and times
according to ISO 8601�?
To support ISO 8601 exclusively I use the following patches, but I
believe this should configureable at compile-time or run-time.
--- htsearch/Display.cc.ORIG Fri Sep 11 11:07:32 1998
+++ htsearch/Display.cc Fri Sep 11 11:24:39 1998
@@ -248,7 +248,8 @@
{
struct tm *tm = localtime(&t);
// strftime(buffer, sizeof(buffer), "%e-%h-%Y", tm);
- strftime(buffer, sizeof(buffer), "%x", tm);
+ // ISO 8601. ~kas
+ strftime(buffer, sizeof(buffer), "%Y-%m-%d %H:%M:%S %Z", tm);
*str << buffer;
}
vars.Add("MODIFIED", str);
--- htnotify/htnotify.cc.ORIG Fri Sep 11 11:13:52 1998
+++ htnotify/htnotify.cc Fri Sep 11 11:26:19 1998
@@ -141,7 +141,8 @@
}
int month, day, year;
- sscanf(date, "%d/%d/%d", &month, &day, &year);
+ // ISO 8601. ~kas
+ sscanf(date, "%d-%d-%d", &year, &month, &day);
if (year > 1900)
year -= 1900;
Thank you for a great product!
~kas
�<URL:http://www.cl.cam.ac.uk/~mgk25/iso-time.html>
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
[EMAIL PROTECTED] containing the single word "unsubscribe" in
the body of the message.