calendar(1): Improve UTC offset and longitude handling
authorAaron LI <aly@aaronly.me>
Tue, 5 Nov 2019 15:24:10 +0000 (23:24 +0800)
committerAaron LI <aly@aaronly.me>
Sun, 10 Nov 2019 04:56:04 +0000 (12:56 +0800)
commit04c78042a4d24301e1b9889e67dd2fda5102f0d4
tree80932f2e7a33889c64b16e1ef59932ab329ad1c4
parentcd0cff3392ab64e19edd6ec29b179fa96f4c556c
calendar(1): Improve UTC offset and longitude handling

Refactor the code that deals with the UTC offset into a separate
function 'get_utcoffset()'.

Meanwhile, allow the '-l' option to accept a float number instead of
an integer only.  This makes more sense.
usr.bin/calendar/calendar.1
usr.bin/calendar/calendar.c
usr.bin/calendar/calendar.h