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:  1990041501.

My Linux is redhat ES V5.1. And I get the same result on Linux with ES5.4.

Thank you very much!

Gao.

 ====================================
  Dr. Gao Shanhong
     Institute of Physical Oceanography
     Ocean University of China
     Songling Road 238, Qingdao, 266100 
     P. R. China
  Email:    ga...@ouc.edu.cn
  Homepage:  http://222.195.136.24
  Office Phone:    
     086-532-82032659 (Yushan Campus)
     086-532-66781312 (Laoshan Campus)
====================================



Reply via email to