タイムスタンプ変換
Unix タイムスタンプと日付文字列を双方向に変換し、相対時間とタイムゾーンごとの表示も確認できます。
ブラウザ内だけで動作します。入力した内容はどこにもアップロードされません。
10桁の数値は秒、13桁はミリ秒として読むため、ログのどちらの形式を貼っても変換なしで動きます。
Unix タイムスタンプリファレンス
クイックリファレンス- 1970-01-01T00:00:00Z
- Unix エポックです。すべてのタイムスタンプはこの UTC の瞬間から数えます。
- 10桁と13桁
- 秒とミリ秒です。13桁の値はミリ秒なので 1000 で割ります。
- 2038-01-19T03:14:07Z
- 32ビット符号付き整数の限界です。int カラムや組み込みシステムでは今も関係します。
- ISO 8601
- Z やオフセットを付けた 2026-11-16T05:00:00Z 形式です。API とログで最も安全です。
- SQL DATETIME
- タイムゾーンのない YYYY-MM-DD HH:MM:SS 形式なので、サーバーのタイムゾーンで解釈されます。
- RFC 2822
- Mon, 16 Nov 2026 05:00:00 +0000 形式で、メールヘッダーで使われます。
SQL の関連文法ガイド
SQL のガイドをすべて見るPostgres RLS 42P17: infinite recursion detected in policy
A policy on members that reads members re-enters itself. One security definer function with a pinned search_path ends the recursion and leaves the rest of the policy intact.
SQLPgBouncer Transaction vs Session Pooling: What Breaks
Port 6543 hands out a server connection per transaction, so prepared statements, SET, LISTEN and cursors stop behaving. Driver-level settings for each stack.
SQLZero-Downtime Postgres Migrations: lock_timeout and NOT VALID
One ALTER TABLE waiting behind a slow SELECT blocks every query that arrives after it. The timeout-retry loop, NOT VALID constraints and CONCURRENTLY index rules.
SQLPostgres JSONB Indexing: GIN vs Expression B-Tree
GIN answers containment, not equality, and an expression B-tree is the reverse. Choose by operator, match the expression exactly, and prove it with EXPLAIN.