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:sslinux?date?
date