ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 常用查询 - 日期函数 ``` <pre class="calibre14">``` <span class="token1">date</span><span class="token2">(</span><span class="token4">'2018-12-26'</span><span class="token2">)</span> 无参数返回当前年月日 <span class="token1">strftime</span><span class="token2">(</span><span class="token4">'%s'</span><span class="token2">,</span><span class="token4">'now'</span><span class="token2">)</span> 时间戳 <span class="token1">datetime</span><span class="token2">(</span><span class="token4">'now'</span><span class="token2">)</span> <span class="token1">time</span><span class="token2">(</span><span class="token4">'now'</span><span class="token2">)</span> <span class="token1">datetime</span><span class="token2">(</span><span class="token4">'now'</span><span class="token2">,</span><span class="token4">'+8 hour'</span><span class="token2">)</span> ``` ``` - 常用函数 ``` <pre class="calibre16">``` count avg sum random max min ``` ```