暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Hubble数据库返回取消时区的时间结果集

原创 做人不能太段德 2023-01-29
184

Hubble数据库 时间格式日期 返回结果取消时区

hubble 3.10 对应函数 to_char()

hubble 3.7 对应函数函数 experimental_strftime()

hubble@poc-hubble02:35432/zl> select  to_char((now() :: timestamp  without time zone),'%Y-%m-%d %H:%M'),now();
      to_char      |              now
-------------------+--------------------------------
  2022-09-29 10:45 | 2022-09-29 10:45:59.645013+08
(1 row)

Time: 1ms total (execution 1ms / network 0ms)

hubble@poc-hubble02:35432/zl>hubble@poc-hubble02:35432/zl> select  to_char((now() :: timestamp  without time zone),'%Y-%m-%d %H:%M'),now();
      to_char      |              now
-------------------+--------------------------------
  2022-09-29 10:45 | 2022-09-29 10:45:59.645013+08
(1 row)

Time: 1ms total (execution 1ms / network 0ms)

hubble@poc-hubble02:35432/zl>

复制
转载Hubble数据库返回取消时区的时间结果集
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论