zoukankan      html  css  js  c++  java
  • date_and_time

    [dba@localhost:mysql.sock] [app01]> select localtime(),localtimestamp(),now(),sysdate(),current_timestamp(),current_date(),curdate(),current_time(),curtime(),unix_timestamp(),utc_timestamp(),utc_date(),utc_time();
    +---------------------+---------------------+---------------------+---------------------+---------------------+----------------+------------+----------------+-----------+------------------+---------------------+------------+------------+
    | localtime()         | localtimestamp()    | now()               | sysdate()           | current_timestamp() | current_date() | curdate()  | current_time() | curtime() | unix_timestamp() | utc_timestamp()     | utc_date() | utc_time() |
    +---------------------+---------------------+---------------------+---------------------+---------------------+----------------+------------+----------------+-----------+------------------+---------------------+------------+------------+
    | 2020-09-16 19:35:18 | 2020-09-16 19:35:18 | 2020-09-16 19:35:18 | 2020-09-16 19:35:18 | 2020-09-16 19:35:18 | 2020-09-16     | 2020-09-16 | 19:35:18       | 19:35:18  |       1600256118 | 2020-09-16 11:35:18 | 2020-09-16 | 11:35:18   |
    +---------------------+---------------------+---------------------+---------------------+---------------------+----------------+------------+----------------+-----------+------------------+---------------------+------------+------------+
    1 row in set (0.00 sec)
    
    [dba@localhost:mysql.sock] [app01]> select localtime(),localtimestamp(),now(),sysdate(),current_timestamp(),current_date(),curdate(),current_time(),curtime(),unix_timestamp(),utc_timestamp(),utc_date(),utc_time()G
    *************************** 1. row ***************************
            localtime(): 2020-09-16 19:35:20
       localtimestamp(): 2020-09-16 19:35:20
                  now(): 2020-09-16 19:35:20
              sysdate(): 2020-09-16 19:35:20
    current_timestamp(): 2020-09-16 19:35:20
         current_date(): 2020-09-16
              curdate(): 2020-09-16
         current_time(): 19:35:20
              curtime(): 19:35:20
       unix_timestamp(): 1600256120
        utc_timestamp(): 2020-09-16 11:35:20
             utc_date(): 2020-09-16
             utc_time(): 11:35:20
    1 row in set (0.00 sec)
  • 相关阅读:
    MSDN仿站
    跟我学android—02.CustomActivity
    iptables redirect outside requests to 127.0.0.1
    linux 查看端口使用情况
    防火墙、Iptables、netfilter/iptables、NAT 概述
    POSTROUTING与PREROUTING区别
    android:layout_gravity和android:gravity的区别
    EasyUI datagrid 分页Json字符串格式
    [转载]easyui datagrid 时间格化(JS 日期时间本地化显示)
    [转载]EasyUI Pagination 分页的两种做法
  • 原文地址:https://www.cnblogs.com/zhouwanchun/p/13680799.html
Copyright © 2011-2022 走看看