From 04cc425ad5987ba914232718ff8bbd5ef418b4d6 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 7 Mar 2011 01:35:51 +0000 Subject: Clean up date handling, as a first step to get rid of the frequent petty warnings in this area: - always store dates as strings, not as seconds since the Epoch - for input, try the three most common formats everywhere - for unrecognized format, just pass the date though verbatim - when there is no date at all, still use the current date Originally triggered by a one-line patch from Tim van der Molen, , which is included here. Feedback and OK on manual parts from jmc@. "please check this in" kristaps@ --- man.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'man.h') diff --git a/man.h b/man.h index 04d50929..6aa744c3 100644 --- a/man.h +++ b/man.h @@ -1,6 +1,6 @@ -/* $Id: man.h,v 1.53 2011/02/09 09:18:15 kristaps Exp $ */ +/* $Id: man.h,v 1.54 2011/03/07 01:35:51 schwarze Exp $ */ /* - * Copyright (c) 2009, 2010 Kristaps Dzonsons + * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -76,8 +76,7 @@ enum man_type { */ struct man_meta { char *msec; /* `TH' section (1, 3p, etc.) */ - time_t date; /* `TH' normalised date */ - char *rawdate; /* raw `TH' date */ + char *date; /* `TH' normalised date */ char *vol; /* `TH' volume */ char *title; /* `TH' title (e.g., FOO) */ char *source; /* `TH' source (e.g., GNU) */ -- cgit v1.2.3-56-ge451