version 1.48, 2009/10/31 06:10:58 |
version 1.49, 2009/11/02 06:22:45 |
Line 818 post_ar(POST_ARGS) |
|
Line 818 post_ar(POST_ARGS) |
|
|
|
|
|
/* |
/* |
* Parse the date field in `Dd', primarily through mdoc_atotime(). |
* Parse the date field in `Dd'. |
* FIXME: push mdoc_atotime() into here. |
|
*/ |
*/ |
static int |
static int |
post_dd(POST_ARGS) |
post_dd(POST_ARGS) |
Line 829 post_dd(POST_ARGS) |
|
Line 828 post_dd(POST_ARGS) |
|
if ( ! concat(m, buf, n->child, DATESIZ)) |
if ( ! concat(m, buf, n->child, DATESIZ)) |
return(0); |
return(0); |
|
|
m->meta.date = mdoc_atotime(buf); |
m->meta.date = mandoc_a2time |
|
(MTIME_MDOCDATE | MTIME_CANONICAL, buf); |
|
|
if (0 == m->meta.date) { |
if (0 == m->meta.date) { |
if ( ! mdoc_nwarn(m, n, EBADDATE)) |
if ( ! mdoc_nwarn(m, n, EBADDATE)) |
return(0); |
return(0); |