Re: cal(1) changes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 31 May 2016 at 17:37, Karel Zak <kzak@xxxxxxxxxx> wrote:
>  I have committed two changes:
>
>  * make it possible to specify month by name (according to locales)
>
>     $ cal May 2017
>
>  * accept timestamps / relative date
>
>     $ cal '2 weeks ago'
>
>     $ cal '+1year'
>
>     $ cal 'tomorrow'
>
>  We already have function to parse timestamps and I love it when use
>  'git log --since', so why not use it for cal? (Note that timestamps
>  are based on English and I think it's right thing (for KISS)).
>
>  Comments?

Sounds fitting. I am in favour.

I wonder if various time, calendar, interval expressions such as
examples above, and timestamp printers & parsers could be turned
into a libtime. If such library would exist the good question is if
anyone would want to use shared resource like this.

-- 
Sami Kerola
http://www.iki.fi/kerolasa/
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux