Re: [V2 0/4] hwclock: remove date(1)

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

 



On 02/28/2017 12:01 PM, Assaf Gordon wrote:
> 
> I might suggest doing away first with relative times, then perhaps
> with timezones.
> 
> There are some confusing combinations, especially with relative times
> (e.g.  "20170228 + 2 days" vs "20:45:45 + 2 days", the latter parsed
> as "8:45:45pm+02:00TZ + 1 day"),
> 
> and then with all sorts of things that are taken as timezones (like
> "2017A" which is parsed as '8:17pm in timezone -01:00'.

Hello Assaf,

Because hwclock(8) was using date(1) to parse --date strings, it has
always be subject to these issues. Some time ago I added a warning not
to use relative times in hwclock.8. I just added a warning about
timezones as well. 

I don't think blocking them from the parser is needed. They could be
useful to some other util-linux module.

> 
> I'm happy to help with testing if needed.

Thank you very much Assaf.


--
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