python:

datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S.%f')

 

java:

System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));

 

 

oracle:

select to_char(current_timestamp,'SYYYY-MM-DD HH24:MI:SS.FF6') from dual

 

 

linux shell:

date '+%Y-%m-%d %H:%M:%S.%N'
或
date '+%F %T.%N'

 

以上

相关文章:

  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-02
  • 2021-05-30
  • 2021-11-28
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
相关资源
相似解决方案