[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error in hours given by date -d @anyNumber
From: |
Chet Ramey |
Subject: |
Re: error in hours given by date -d @anyNumber |
Date: |
Mon, 17 Jan 2022 15:57:13 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 |
On 1/17/22 3:10 PM, Girod Valentin wrote:
Bash Version: 5.0
Patch Level: 17
Release Status: release
Description:
when using date -d @customNumber +%H,
it returns 1 more hour that the expected hour.
Repeat-By:
date -d @0 +%T
returns: 01:00:00 (WHAT THE FUCK)
This is not a bash bug, since `date' is not a bash builtin.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/