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

Re: Bug#417261: dch: please use dates in UTC

Stefano Zacchiroli wrote:
> > $ D="$(zgrep "^ -- " /usr/share/doc/apt/changelog.Debian.gz | \
> > > head -1 | sed "s/^.*>  //")"
> > $ date -uRd "$D"
> "Trivial" is something I can do without having the need of thinking
> about an implementation of it. I guess you spent a couple of minutes
> writing the above shell script snippet.

I dunno, the fact that I came up with a different implementation as fast
as I could type it suggests it's pretty trivial:

perl -MDate::Parse -le 'print scalar gmtime str2time shift'

see shy jo

Attachment: signature.asc
Description: Digital signature

Reply to: