>If someone knows an elegant way to calculate the number of days from
> time periods in groff, I'd be very thankful.

How about something like this:

.PS 5i
define days { line right $1 }
jan = 31
feb = 28
mar = 31
apr = 30
may = 31
...
define tick { line up 1
              $1 at last line.s below }

tick("3/15")
days(mar-15+apr+may+5)
tick("6/5")
.PE

Reply via email to