1DP(8) [nmh-1.3] DP(8)
2
3
4
6 dp - parse dates 822-style
7
9 /usr/libexec/nmh/dp [-form formatfile] [-format string] [-width col‐
10 umns] [-version] [-help] dates ...
11
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 822-format. Hence, it is usually best to
20 enclose each argument in double-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 822-proper format of the
33 date.
34
35
37 $HOME/.mh_profile The user profile
38
39
41 None
42
43
45 ap(8), Standard for the Format of ARPA Internet Text Messages (RFC-822)
46
47
49 `-format' default as described above
50 `-width' default to the width of the terminal
51
52
54 None
55
56
58 The argument to the -format switch must be interpreted as a single
59 token by the shell that invokes dp. Therefore, one must usually place
60 the argument to this switch inside double-quotes.
61
62
63
64MH.6.8 1 June 2008 DP(8)