首页 > 代码库 > Shell 获取当前时间

Shell 获取当前时间

#! /bin/bashtime=`date +%Y-%m-%d %H:%M:%S`# echo $timesql=SELECT `username`, `password` FROM `user` WHERE `expire_date` < "${time}" and `remaining_seconds` > 0;echo $sql