1DP(8)                       System Manager's Manual                      DP(8)
2
3
4

NAME

6       dp - nmh parser of RFC 822-style dates
7

SYNOPSIS

9       /usr/libexec/nmh/dp [-help] [-version] [-form formatfile] [-format
10            string] [-width columns] dates ...
11

DESCRIPTION

13       dp is a program that parses dates according to the ARPA Internet  stan‐
14       dard.   It  also  understands  many non-standard formats, such as those
15       produced by TOPS-20 sites and some Unix sites using  ctime(3).   It  is
16       useful for seeing how nmh will interpret a date.
17
18       The  dp  program  treats each argument as a single date, and prints the
19       date out in the official RFC 822 format.  Hence, it is usually best  to
20       enclose each argument in quotes for the shell.
21
22       To override the output format used by dp, the -format string or -format
23       file switches are used.  This permits individual fields of the  address
24       to  be  extracted  with ease.  The string is simply a format string and
25       the file is simply a format file.  See mh-format(5) for the details.
26
27       Here is the default format string used by dp:
28
29            %<(nodate{text})error: %{text}%|%(putstr(pretty{text}))%>
30
31       which says that if an error was detected, print the error, a  `:',  and
32       the  date in error.  Otherwise, output the RFC 822-proper format of the
33       date.
34

FILES

36       $HOME/.mh_profile   The user's profile.
37

PROFILE COMPONENTS

39       None
40

SEE ALSO

42       fmttest(1), ap(8),
43
44       Standard for the Format of ARPA Internet Text Messages (RFC 822)
45

DEFAULTS

47       -format             As described above.
48       -width              The width of the terminal.
49

CONTEXT

51       None
52
53
54
55nmh-1.7.1                         1999-04-30                             DP(8)
Impressum