回答編集履歴

2

epochとかいらんかった。

2024/08/29 01:29

投稿

shiketa
shiketa

スコア4061

test CHANGED
@@ -14,12 +14,7 @@
14
14
  aaa as
15
15
  (
16
16
  SELECT
17
- to_timestamp(
18
- generate_series(
19
- EXTRACT(EPOCH FROM min(dt))::int,
20
- EXTRACT(EPOCH FROM max(dt))::int
21
- )
22
- ) at time zone 'utc' as dt
17
+ generate_series(min(dt), max(dt), interval '1 second') as dt
23
18
  from hoge
24
19
  ),
25
20
  bbb as

1

typo

2024/08/29 01:22

投稿

shiketa
shiketa

スコア4061

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```sql
4
4
  create table hoge (dt timestamp without time zone);
5
- delete from hoge;
5
+
6
6
  insert into hoge values
7
7
  ('2024-08-29 09:00:00'),
8
8
  ('2024-08-29 09:00:01'),