Unixタイムスタンプ変換ツール

Unixタイムスタンプを人間が読める日付に即座に変換します。自動タイムゾーン検出、Discordタイムスタンプ対応、リアルタイム変換機能を備えた無料オンラインツールです。

Open Object Storage Upload Example

現在のUnixタイムスタンプ

0
年間通算日
-
年間通算週
-

あなたのタイムゾーン

自動検出

Toast Demo

Test all toast notification types.

Modal System Demo

Try the reusable modal helper for informational and form-driven flows.

Unixタイムスタンプから人間が読める日付へ

秒単位(10桁)またはミリ秒単位(13桁)のタイムスタンプを入力してください
完全な日付と時刻: -
日付のみ: -
時刻のみ: -
年間通算日: -
年間通算週: -
相対時間: -
ISO 8601: -

人間が読める日付からUnixタイムスタンプへ

Unixタイムスタンプ(秒): -
Unixタイムスタンプ(ミリ秒): -

Discord Timestamps

これらの形式をコピーしてDiscordで使用できます。各ユーザーのローカルタイムゾーンで表示されます!
デフォルト (短い日付と時刻)
<t:0>
January 1, 1970 12:00 AM
短い時刻 (:t)
<t:0:t>
12:00 AM
長い時刻 (:T)
<t:0:T>
12:00:00 AM
短い日付 (:d)
<t:0:d>
01/01/1970
長い日付 (:D)
<t:0:D>
January 1, 1970
短い日付/時刻 (:f)
<t:0:f>
January 1, 1970 12:00 AM
長い日付/時刻 (:F)
<t:0:F>
Thursday, January 1, 1970 12:00 AM
相対時間 (:R)
<t:0:R>
54 years ago

Unixタイムスタンプとは?

Unixタイムスタンプ(エポック時間またはPOSIX時間とも呼ばれます)は、1970年1月1日00:00:00 UTC(Unixエポック)からの秒数のカウントとして時間を追跡するシステムです。この標準化された時間形式は、世界中のプログラミング、データベース、コンピュータシステムで広く使用されています。

Unixタイムスタンプはタイムゾーンに依存せず、世界中で同じ瞬間を表します。これにより、タイムゾーン変換が複雑になる可能性のあるデータベース、API、アプリケーションで日付と時刻を保存するのに最適です。

なぜこのUnixタイムスタンプ変換ツールを使うのか?

即座に変換

ページの再読み込みなしでリアルタイム処理。入力するとすぐに結果が表示されます。

スマートタイムゾーン検出

タイムゾーンを自動検出し、ローカル時間で変換結果を表示します。

Discord対応

メッセージ用のDiscordタイムスタンプ形式を即座に生成します。

Unixタイムスタンプの一般的な用途

ソフトウェア開発

開発者はUnixタイムスタンプを使用して、イベントのログ記録、タスクのスケジューリング、ユーザーアクティビティの追跡、アプリケーション内の時間ベースの操作管理を行います。

データベース管理

Unix形式でタイムスタンプを保存することで、異なるシステム間で一貫した時間表現が保証され、日付計算がより効率的になります。

API統合

多くのAPIは日付と時刻のパラメータにUnixタイムスタンプを使用しているため、人間が読める日付とタイムスタンプの間の変換が不可欠です。

Discordボットとメッセージ

Discordは特別な書式のUnixタイムスタンプを使用して、各ユーザーのローカルタイムゾーンで時刻を自動的に表示します。

Custom Dropdown Examples

Enhanced dropdown select components with icons, images, badges, search, and multi-select support.

Basic Dropdown

Dynamic Options (Add Button Next to Dropdown)

Total options: 0

Dropdown with Icons

Dropdown with Badges

Searchable Dropdown

Multi-Select Dropdown

Multi-Select with Search

Full-Featured Example

Custom Dropdown Features: These dropdowns support icons, images, badges, search functionality, multi-select with checkboxes, option groups, keyboard navigation, and full accessibility. Add data-dropdown attribute to any select element to enable.

Collapse/Spoiler System Examples

Reusable collapsible sections for FAQ, extra options, and more. Features auto icons, state persistence, and multiple variants.

Basic Collapse

This is a basic collapsible section. The state is saved to localStorage by default, so it will remember if you opened or closed it when you refresh the page.

Perfect for hiding extra options, additional information, or lengthy content.

Default Open (with state saving)

This collapse starts open but still saves its state. Try closing it and refreshing the page - it will stay closed!

Add data-collapse-open attribute to start in open state.

No State Persistence

This collapse doesn't save its state to localStorage. It will always start closed when you refresh.

Add data-collapse-no-save attribute to disable state persistence.

FAQ Section

A Unix timestamp is the number of seconds that have elapsed since January 1, 1970 (midnight UTC), not counting leap seconds. It's a widely used standard for representing time in computer systems.

Simply enter your Unix timestamp in the converter above! You can also use programming languages like JavaScript: new Date(timestamp * 1000) or Python: datetime.fromtimestamp(timestamp).

Unix timestamps are timezone-independent, making them perfect for storing dates in databases and APIs. They're also easier to perform calculations with since they're just numbers.

Accordion Mode (only one open at a time)

const timestamp = Math.floor(Date.now() / 1000);
console.log(timestamp); // Current Unix timestamp
import time
timestamp = int(time.time())
print(timestamp)  # Current Unix timestamp
$timestamp = time();
echo $timestamp; // Current Unix timestamp

Color Variants

This uses the primary color scheme.

This uses the success color scheme with a badge.

This uses the info color scheme.

This uses the warning color scheme.

This uses the danger/error color scheme.

This uses a minimal, borderless style.

詳細オプション

Data Attributes

  • data-collapse-open - Start in open state (default: closed)
  • data-collapse-no-save - Disable state persistence (default: enabled)
  • data-collapse-key="unique_key" - Custom localStorage key
  • data-collapse-accordion - Enable accordion mode (close others when opening)
  • data-collapse-group="group_name" - Accordion group name
  • data-collapse-duration="500" - Animation duration in milliseconds

CSS Classes

  • .collapse-container - Main container (required)
  • .collapse-header - Clickable header (required)
  • .collapse-content - Collapsible content (required)
  • .collapse-faq - FAQ-specific styling
  • .collapse-group - Wrapper for grouped collapses
  • .variant-* - Color variants (primary, success, info, warning, danger, minimal, flush)

JavaScript API

// Get instance
const collapse = window.Collapse.getInstance(element);

// Methods
collapse.toggle();  // Toggle open/close
collapse.open();    // Open
collapse.close();   // Close

// Static methods
window.Collapse.openAll();   // Open all collapses
window.Collapse.closeAll();  // Close all collapses

// Create with options
new window.Collapse(element, {
  defaultOpen: false,
  saveState: true,
  accordion: false,
  onOpen: (instance) => console.log('Opened!'),
  onClose: (instance) => console.log('Closed!'),
  onToggle: (isOpen, instance) => console.log('Toggled:', isOpen)
});
Collapse Features: Auto-rotating chevron icons, localStorage state persistence (remembers open/close), accordion mode, color variants, badges, full keyboard navigation, accessibility support (ARIA), smooth animations, and mobile-optimized.

Tab System Examples

Tabbed content navigation with state persistence. Each tab displays different pre-written content with automatic active state management.

Basic Tabs

Welcome to the Tab System

This is the overview tab. Tabs automatically remember which tab you had selected when you refresh the page using localStorage.

Use the arrow keys to navigate between tabs, or click on them directly. The system is fully accessible with ARIA support.

Key Features

  • State persistence (remembers active tab)
  • Keyboard navigation (Arrow keys, Home, End)
  • Multiple style variants (default, pills, boxed, minimal, vertical)
  • Color themes
  • Icons and badges support
  • Deep linking with URL hashes
  • Fully accessible (ARIA)
  • Mobile optimized

使い方

Add the following HTML structure to create tabs:

<div class="tab-container" data-tab-key="unique_key">
  <ul class="tab-nav">
    <li><button class="tab-button">Tab 1</button></li>
    <li><button class="tab-button">Tab 2</button></li>
  </ul>
  <div class="tab-content-area">
    <div class="tab-panel">Content 1</div>
    <div class="tab-panel">Content 2</div>
  </div>
</div>

Pills Variant

Code Editor

Pills variant uses rounded, filled buttons for active tabs. This style is popular for code editors and development tools.

function hello() {
  console.log('Hello from the code tab!');
}

ライブプレビュー

This tab would show a live preview of your code. Each tab's content is pre-written and hidden until selected.

Code compiled successfully!

Configuration

Configure your preferences here. Tab state is automatically saved to localStorage.

Tabs with Badges

Inbox Messages

You have 3 new messages in your inbox. Badges can be used to show counts or status.

New message from Admin

Starred Items

12 items are marked as important. You can use badges to show counts, status, or notifications.

Deleted Items

Your trash is empty. Items are permanently deleted after 30 days.

Boxed Variant

HTML Structure

Boxed variant uses bordered, box-style buttons. Great for segmented controls and tool panels.

<div class="tab-container variant-boxed">
  <!-- Tab navigation -->
</div>

CSS Styling

.tab-container.variant-boxed .tab-button {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-small);
}

JavaScript

// Tabs auto-initialize on page load
const tabs = Tabs.getInstance(element);
tabs.activate(1); // Switch to second tab

Minimal Variant

Personal Information

Minimal variant has no borders or background, perfect for clean, minimal designs.

Security Settings

Manage your security preferences and two-factor authentication.

Notification Preferences

Choose which notifications you want to receive.

プライバシー設定

Control who can see your information and activity.

Vertical Tabs

Your Profile

Vertical tabs place navigation on the left side. Perfect for settings pages and dashboards.

Note: On mobile devices, vertical tabs automatically switch to horizontal layout for better usability.

Messages

View and manage your messages here.

通知

Stay updated with your latest notifications.

System Settings

Configure your application settings and preferences.

Color Variants

Success color variant with pills style.

Great for positive actions and confirmations.

Info color variant with pills style.

Perfect for informational content.

Warning color variant with pills style.

Use for warnings and important notices.

Danger color variant with pills style.

Use for errors and destructive actions.

Advanced Options & API

Data Attributes

  • data-tab-key="unique_key" - Custom localStorage key for state persistence
  • data-tab-default="2" - Set default active tab (0-based index, default: 0)
  • data-tab-no-save - Disable state persistence (default: enabled)
  • data-tab-no-animate - Disable animations
  • data-tab-no-keyboard - Disable keyboard navigation
  • data-tab-deep-link - Enable URL hash deep linking
  • data-tab-id="custom" - Custom ID for deep linking (on tab buttons)

CSS Classes

  • .tab-container - Main container (required)
  • .tab-nav - Navigation list (required)
  • .tab-button - Tab button (required)
  • .tab-content-area - Content wrapper (required)
  • .tab-panel - Tab content panel (required)
  • Variants: .variant-pills, .variant-boxed, .variant-minimal, .variant-vertical
  • Colors: .color-success, .color-info, .color-warning, .color-danger
  • 配置: .align-center, .align-right, .full-width

JavaScript API

// Get instance
const tabs = window.Tabs.getInstance(element);

// Navigation methods
tabs.activate(2);     // Switch to tab at index 2
tabs.next();          // Go to next tab
tabs.previous();      // Go to previous tab
tabs.first();         // Go to first tab
tabs.last();          // Go to last tab

// Tab control
tabs.disableTab(1);   // Disable tab at index 1
tabs.enableTab(1);    // Enable tab at index 1

// State management
tabs.clearState();    // Clear saved state

// Create with options
new window.Tabs(element, {
  defaultTab: 0,
  saveState: true,
  keyboard: true,
  deepLink: false,
  onChange: (index, instance) => {
    console.log('Tab changed to:', index);
  },
  onBeforeChange: (newIndex, oldIndex, instance) => {
    // Return false to prevent tab change
    return true;
  }
});

// Listen to tab change events
element.addEventListener('tabchange', (e) => {
  console.log('Changed to:', e.detail.index);
});
Tab Features: localStorage state persistence (remembers active tab), keyboard navigation (Arrow keys, Home, End), multiple style variants, color themes, icons and badges, deep linking support, fully accessible (ARIA), smooth animations, and mobile-optimized with responsive layout.