Re: [RFC 2/5] Pretty Print: show tz when using DATE_LOCAL

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

 



Michael Witten <mfwitten@xxxxxxxxx> writes:

> Allow me to restate what I think you are saying:
>
> How about having [the still deprecated] --date=local (that is, DATE_LOCAL)
> option produce the old behavior, but have every combination of date mode
> options that does not involve DATE_LOCAL always emit the time zone.
>
> In other words, all of these do not emit a time zone:
>
>   --date=local
>   --date=local --time-zone=local
>   --date=local --time-zone=default   # --time-zone is ignored for simplicity.

Yeah.  It is even plausible to extend --date further so that we can
express things like

    --date='%a %b %d %H:%M:%S %Y'
    --date='%a %b %d %H:%M:%S %Y %z'

The former would be equivalent to --date[-format]=local, the latter would
be equivalent to --date[-format]=default.

Or something like that [warning: without morning caffeine yet] :-) 
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]