當前位置:編程學習大全網 - 網站源碼 - linux%date

linux%date

shell?

linux?date?0

#!/bin/sh

currentHour=$(date+%H)

if

then

currentTime=$(date+%s);

tmp=$(($currentTime-3600));

echo$(date-d"@$tmp"+%Y-%m-%d);

else

echo$(date+%Y-%m-%d);

fi

LinuxdateGMT

1GMT=UTC?UTC

2?date-u?UTC?GMT

3GMTUTC?%s?

linuxdate?

Linux?timestemp/etc/localtime?

localtime?local?GMTlinux?localtime

timestemp

mysql?timestempISOYYYY-MM-DDHH:mm:ss

linux?date?

date

  • 上一篇:求下面英語的翻譯
  • 下一篇:t radarlab org雷達幣還行嗎?
  • copyright 2024編程學習大全網