[nSLUG] Odd things from date version 8.13

Ben Armstrong synrg at sanctuary.nslug.ns.ca
Fri Apr 26 12:54:57 ADT 2013


On 26/04/13 12:16 PM, Stephen Gregory wrote:
> more fun
> 
> 
> $ date -d "23:00 + 1 min"
> Fri Apr 26 18:01:00 EDT 2013
> 
> $ TZ=UTC date -d "23:00 + 1 min"
> Fri Apr 26 22:01:00 UTC 2013
> 
> TZ=EDT date -d "23:00 + 1 min"
> Fri Apr 26 22:01:00 EDT 2013
> 
> 
> $ date -d "23:00 1 min"
> Fri Apr 26 23:01:00 EDT 2013

For bonus points, subtract one minute in your own timezone. (I know the
answer already. Just wondering if people know how to read the doc. :)

Ben



More information about the nSLUG mailing list