Hi, Dear Sir,
I use the command: date +%Y%m%d%H -d 1990-04-13 12 36 hours
But I get the result: 1990041501 ! The correct one should be 1990041500.
date +%Y%m%d%H -d 1990-04-13 12 118799 seconds
the result is: 1990041500.
But,
date +%Y%m%d%H -d 1990-04-13 12 118800 seconds
the result is:
On Mon, 8 Mar 2010, gaosh wrote:
I use the command: date +%Y%m%d%H -d 1990-04-13 12 36 hours
But I get the result: 1990041501 ! The correct one should be 1990041500.
The result depends on your system's local timezone, which I assume is
set to Asia/Shanghai or equivalent Chinese location.