提交 d5f3df0d authored 作者: Stéphane Eintrazi's avatar Stéphane Eintrazi

add test with day in uppercase

上级 75b6e4cf
select DATE_TRUNC('day', time '00:00:00');
>> 00:00:00
select DATE_TRUNC('DAY', time '00:00:00');
>> 00:00:00
select DATE_TRUNC('day', time '15:14:13');
>> 00:00:00
select DATE_TRUNC('DAY', time '15:14:13');
>> 00:00:00
select DATE_TRUNC('day', date '2015-05-29');
>> 2015-05-29
select DATE_TRUNC('DAY', date '2015-05-29');
>> 2015-05-29
select DATE_TRUNC('day', timestamp '2015-05-29 15:14:13');
>> 2015-05-29 00:00:00
select DATE_TRUNC('DAY', timestamp '2015-05-29 15:14:13');
>> 2015-05-29 00:00:00
select DATE_TRUNC('day', timestamp with time zone '2015-05-29 15:14:13');
>> 2015-05-29 00:00:00+00
select DATE_TRUNC('DAY', timestamp with time zone '2015-05-29 15:14:13');
>> 2015-05-29 00:00:00+00
select DATE_TRUNC('day', timestamp with time zone '2015-05-29 05:14:13-06');
>> 2015-05-29 00:00:00-06
select DATE_TRUNC('DAY', timestamp with time zone '2015-05-29 05:14:13-06');
>> 2015-05-29 00:00:00-06
select DATE_TRUNC('day', timestamp with time zone '2015-05-29 15:14:13+10');
>> 2015-05-29 00:00:00+10
select DATE_TRUNC('DAY', timestamp with time zone '2015-05-29 15:14:13+10');
>> 2015-05-29 00:00:00+10
select DATE_TRUNC('day', '2015-05-29 15:14:13');
>> 2015-05-29 00:00:00
select DATE_TRUNC('DAY', '2015-05-29 15:14:13');
>> 2015-05-29 00:00:00
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论