Unix timestamp 1791817270

Unix timestamp 1791817270 converts to 2026-10-12 15:01:10 UTC in UTC and 2026-10-12 18:01:10 in your local time zone. This timestamp represents a precise moment in time. The sections below show its full breakdown — including ISO formats, weekday, day of year, and world-time-zone comparisons.

Timestamp Converter

Convert between Unix timestamps and human-readable dates instantly.

Unix time → Date

Enter a Unix timestamp to see the corresponding date and time.

UTC Time
2026-10-12 15:01:10 UTC
Local Time
2026-10-12 18:01:10
ISO 8601 (UTC)
2026-10-12T15:01:10Z
Relative Time
1 hours ago

Date → Unix time

Select a date and time to get the corresponding Unix timestamp.

Unix Timestamp
1791821381
ISO 8601 Format
2026-10-12T16:09:41Z

Server Time Synchronization

Keep your server time perfectly synchronized using UnixDate as reference.

Server Time Check

Compare your server time with accurate Unix timestamp from our servers.

Time Difference
-
Sync Status
-

Auto-Sync Commands

Use these commands to sync with UnixDate from different platforms.

curl -s "https://unixdate.com/api/now" | grep -o '"seconds":[0-9]*' | cut -d: -f2
$unixdate = json_decode(file_get_contents('https://unixdate.com/api/now'), true);
$accurate_time = $unixdate['unix']['seconds'];
import requests, time
response = requests.get('https://unixdate.com/api/now')
accurate_time = response.json()['unix']['seconds']

Timezone Comparison

See how the same moment appears around the world.

UTC (Coordinated Universal Time)

2026-10-12 16:09:41
Unix timestamp always uses UTC as reference point
New York
2026-10-12 12:09:41
UTC-4
Los Angeles
2026-10-12 09:09:41
UTC-7
London
2026-10-12 17:09:41
UTC+1
Berlin
2026-10-12 18:09:41
UTC+2
Moscow
2026-10-12 19:09:41
UTC+3
Dubai
2026-10-12 20:09:41
UTC+4
Mumbai
2026-10-12 21:39:41
UTC+5:30
Shanghai
2026-10-13 00:09:41
UTC+8
Singapore
2026-10-13 00:09:41
UTC+8
Tokyo
2026-10-13 01:09:41
UTC+9
Sydney
2026-10-13 03:09:41
UTC+11
São Paulo
2026-10-12 13:09:41
UTC-3

Detailed Timezone Comparison

Timezone Current Time UTC Offset Unix Timestamp
New York2026-10-12 12:09:41UTC-41791821381
Los Angeles2026-10-12 09:09:41UTC-71791821381
London2026-10-12 17:09:41UTC+11791821381
Berlin2026-10-12 18:09:41UTC+21791821381
Moscow2026-10-12 19:09:41UTC+31791821381
Dubai2026-10-12 20:09:41UTC+41791821381
Mumbai2026-10-12 21:39:41UTC+5:301791821381
Shanghai2026-10-13 00:09:41UTC+81791821381
Singapore2026-10-13 00:09:41UTC+81791821381
Tokyo2026-10-13 01:09:41UTC+91791821381
Sydney2026-10-13 03:09:41UTC+111791821381
São Paulo2026-10-12 13:09:41UTC-31791821381

Basic Unix Time Tools

Essential tools for working with Unix timestamps.

Batch Converter

Convert multiple timestamps at once. Paste one timestamp per line.

Countdown Timer

See time remaining until a specific timestamp or date.

Time Remaining
–

Duration Calculator

Calculate exact time between two timestamps in human readable format.

Duration
–

Workday Calculator

Calculate work days between dates, excluding weekends and holidays.

Work Days
–

Age Calculator

Calculate precise age from birth timestamp to current time.

Age
–

Date Tools

Quick date calculations and information.

Result
–

Developer Tools

Specialized tools for developers working with Unix timestamps in APIs, databases, and applications.

Timestamp Diff Tool

Compare two timestamps and calculate exact difference with percentage.

Absolute Difference
–
Human Readable
–
Percentage of Period
–

Timestamp Range Generator

Generate sequences of timestamps between start and end points.

Rate Limit Calculator

Calculate API rate limits for different time periods.

Requests per second
–
Requests per minute
–
Requests per hour
–

Cache TTL Generator

Generate TTL values with optional randomness for cache systems.

TTL in seconds
–
With jitter
–
Human readable
–

Cron Parser

Parse cron expressions and show next execution times.

Next runs
–

Timezone Overlap

Find overlapping work hours for global distributed teams.

Overlap hours per day
–
Overlap period
–

Data Analysis Tools

Advanced tools for analyzing timestamp patterns, detecting anomalies, and processing time series data.

Pattern Detector

Analyze timestamp sequences for patterns, intervals, and gaps.

Detected Interval
–
Number of Gaps
–
Pattern Type
–

Time Bucket Aggregator

Group timestamps into time intervals for analysis and visualization.

Number of buckets
–
Largest bucket
–
Average per bucket
–

Peak Hours Detector

Identify busiest periods from timestamp and count data.

Peak period
–
Peak value
–
Off-peak period
–

Seasonality Detector

Detect seasonal patterns in timestamp sequences over longer periods.

Seasonal Pattern
–
Confidence Level
–

Anomaly Detector

Find unusual patterns and outliers in timestamp sequences.

Anomalies Found
–
Most Anomalous
–

Correlation Analyzer

Analyze correlations between multiple timestamp sequences.

Correlation Score
–
Relationship
–

Planning & Scheduling Tools

Tools for meeting planning, project scheduling, and business time calculations.

Meeting Time Finder

Find optimal meeting times across different time zones.

Available slots
–
Best time
–

Business Hours Calculator

Calculate working hours between dates excluding weekends.

Business hours
–
Business days
–
Total hours
–

Project Milestone Tracker

Track project milestones with working day calculations.

Working days remaining
–
Calendar days
–
Weeks remaining
–

Sprint Calculator

Calculate sprint durations, deadlines, and velocity.

Sprint end date
–
Working days
–

Deadline Tracker

Track project deadlines with alerts and progress.

Days until deadline
–
Progress status
–

Team Schedule Optimizer

Optimize team schedules for maximum productivity.

Optimal overlap
–
Recommended schedule
–

Testing & Simulation Tools

Tools for generating test data, simulating time scenarios, and load testing.

Timestamp Faker

Generate realistic test timestamps for development and testing.

Load Test Schedule Generator

Generate realistic load test schedules with ramp-up and sustain periods.

Total duration
–
Total requests
–
Schedule steps
–

API Latency Simulator

Simulate different API latency patterns for testing.

Average latency
–
Maximum latency
–
Minimum latency
–

Webhook Simulator

Simulate webhook deliveries at specific times for testing.

Simulations created
–
Next delivery
–

Mock Data Generator

Generate mock data with realistic timestamps for testing.

Performance Test Generator

Generate performance test scenarios with time-based metrics.

Total requests
–
Requests per second
–

Specialized Tools

Advanced tools for specific timestamp scenarios and calculations.

Leap Second Calculator

Calculate leap seconds and their effects on timestamps.

Leap seconds in year
–
Total leap seconds
–
Next leap second
–

Anniversary Calculator

Calculate anniversaries, milestones, and special dates.

Anniversary date
–
Unix timestamp
–
Time until
–

Daylight Saving Calculator

Calculate daylight saving time transitions and effects.

DST Start
–
DST End
–
Total DST days
–

Microsecond Converter

Convert between seconds, milliseconds, and microseconds.

Converted value
–
Human readable
–

Historical Time Converter

Convert historical dates to Unix timestamps and vice versa.

Unix timestamp
–
Days since epoch
–

Time Zone Explorer

Explore time zones around the world with current times.

Selected region
–
Timezone count
–

Security & Audit Tools

Tools for security analysis, token validation, and audit log processing.

Token Expiration Checker

Check token expiration times and calculate remaining validity.

Expiration time
–
Time remaining
–
Token status
–

Session Timeout Analyzer

Analyze session timeouts and idle time calculations.

Session duration
–
Idle time
–
Session status
–

Audit Log Analyzer

Analyze timestamps in audit logs for anomalies and patterns.

Total events
–
Time range
–
Events per hour
–

Security Event Timeline

Create timelines of security events for investigation.

Timeline events
–
Critical events
–

Rate Limit Monitor

Monitor API rate limits and calculate usage patterns.

Usage percentage
–
Remaining requests
–
Reset time
–

Compliance Checker

Check timestamp compliance for regulations and standards.

Compliance status
–
Retention period
–

Visualization Tools

Tools for visualizing timestamp data, creating charts, and generating reports.

Timeline Generator

Generate timeline visualizations from timestamp sequences.

Timeline created
–
Total duration
–

Calendar Heatmap

Create calendar heatmaps showing activity patterns.

Data points
–
Date range
–

Gantt Chart Generator

Generate Gantt charts for project scheduling.

Tasks created
–
Project duration
–

Time Series Visualizer

Visualize time series data with timestamps.

Data points
–
Value range
–

Activity Report Generator

Generate activity reports from timestamp data.

Report generated
–
Unique users
–

Pattern Visualizer

Visualize patterns in timestamp sequences.

Pattern detected
–
Visualization ready
–

About Unix Time

Unix time (also called Unix timestamp or POSIX time) is a simple way to represent a point in time as a single integer: the number of whole seconds that have passed since 1970-01-01 00:00:00 UTC, known as the Unix epoch.

Key facts

  • 0 means 1970-01-01 00:00:00 UTC.
  • Positive values are dates after the epoch, negative values are dates before it.
  • Unix time does not know about time zones; it is always based on UTC.
  • Most databases and APIs use Unix timestamps because they are compact and unambiguous.

The Year 2038 Problem

Some systems store epoch dates as a signed 32-bit integer, which might cause problems on January 19, 2038 (known as the Year 2038 problem or Y2038). The converter on this page converts timestamps in seconds (10-digit), milliseconds (13-digit) and microseconds (16-digit) to readable dates.

Get the current Unix time

On Linux, macOS, BSD (shell)

date +%s

Returns: 1791821381 (current Unix timestamp)

Convert a timestamp back to a date (shell)

date -d '@1791821381' -u

Returns: Mon Oct 12 16:09:41 2026 UTC

date -d '@1791821381'

Returns: Mon Oct 12 19:09:41 2026 (in your local timezone)

Unix time in common tools

MySQL - Get current timestamp

SELECT UNIX_TIMESTAMP(NOW());

Returns: 1791821381 (current Unix timestamp)

MySQL - Convert timestamp to date

SELECT FROM_UNIXTIME(1791821381);

Returns: 2026-10-12 19:09:41

PHP - Get current timestamp

$ts = time();

Returns: 1791821381 (current Unix timestamp)

PHP - Convert timestamp to UTC date

echo gmdate('Y-m-d H:i:s', $ts);

Returns: 2026-10-12 16:09:41 UTC

JavaScript - Get current timestamp

const ts = Math.floor(Date.now() / 1000);

Returns: 1791821381 (current Unix timestamp)

JavaScript - Convert timestamp to date

const d = new Date(ts * 1000);

Returns: Date object representing 2026-10-12T16:09:41Z

Python - Get current timestamp

import time
ts = int(time.time())

Returns: 1791821381 (current Unix timestamp)

Python - Convert timestamp to UTC date

import datetime
dt_utc = datetime.datetime.utcfromtimestamp(ts)

Returns: datetime object representing 2026-10-12 16:09:41 UTC

Node.js - Get current timestamp

const ts = Math.floor(Date.now() / 1000);

Returns: 1791821381 (current Unix timestamp)

Node.js - Convert timestamp to date

const d = new Date(ts * 1000);

Returns: Date object representing 2026-10-12T16:09:41Z

Where Unix time is used

Unix timestamps appear in almost every modern system. They are the default way to represent time in operating systems, web APIs, databases, mobile apps, monitoring tools and even blockchains.

Operating systems and files

Unix-like systems (Linux, BSD, macOS) track the current time internally as a Unix timestamp. File modification, access and creation times are stored as epoch-based integers that can be converted back to human dates on demand.

Web APIs and backends

Many public and internal HTTP APIs send and receive Unix timestamps for event times, rate limits, token expirations, scheduled jobs and analytics. Using a single UTC-based number avoids the confusion of time zones and daylight saving changes.

Databases and logs

Logging systems and databases often store timestamps either as Unix seconds or milliseconds. This makes it easy to sort, filter, aggregate and compare events over time without parsing complex date strings.

Mobile apps

val tsSeconds = System.currentTimeMillis() / 1000

Returns: 1791821381 (current Unix timestamp in Kotlin)

let ts = Int(Date().timeIntervalSince1970)

Returns: 1791821381 (current Unix timestamp in Swift)

Mobile SDKs rely on Unix time for sync, caching, notifications, analytics and offline data. The timestamp can be safely sent to servers, stored locally or embedded in API calls.

Crypto and blockchain

uint256 nowTs = block.timestamp;

Returns: 1791821381 (current block timestamp in Solidity)

Blockchains record the time of each block and transaction using epoch-based values. Smart contracts use these timestamps to implement locks, vesting schedules, auctions and time-based conditions.

Monitoring, metrics and IoT

Monitoring tools, metrics collectors and IoT devices use Unix timestamps to tag measurements and events. This allows dashboards and alerting systems to align data from different sources on a single time axis.

Why use UnixDate?

  • Paste any Unix timestamp and instantly see what date and time it represents.
  • Generate timestamps from calendar dates for quick debugging or API calls.
  • Open a direct URL like /1791821381 to share or bookmark a specific moment.
  • Compare the same Unix time across multiple time zones with the live clocks above.

What makes UnixDate different?

Most timestamp converters simply print a date and stop there. UnixDate aims to be a complete, precise and developer-friendly tool. Every timestamp page is generated dynamically and includes fully formatted UTC and local time, ISO 8601 strings, weekday information, day of year, and a live "relative to now" counter that updates every second.

Along with that, UnixDate provides live world clocks for major cities, automatic detection of milliseconds, and shareable clean URLs for every timestamp. It works equally well for quick copy-paste lookups and for serious debugging work.

Milliseconds and sub-second precision

Many modern APIs and browsers use millisecond Unix timestamps instead of seconds. UnixDate detects this automatically: if the value contains more than 10 digits it is treated as a millisecond timestamp and converted accordingly. Both the normalized second value and the original millisecond value are shown on timestamp pages and in the JSON API.

UnixDate JSON API

UnixDate exposes a simple, stateless JSON API so you can integrate timestamp conversions in scripts, cron jobs, monitoring systems or backend services. No keys, no authentication.

API endpoint

https://unixdate.com/api/<timestamp>

Use the current timestamp in your tools

Shell (curl + date)
ts=$(date +%s)
curl "https://unixdate.com/api/$ts"

Returns: JSON response with timestamp details

JavaScript / Node.js
const ts = Math.floor(Date.now() / 1000);
fetch("https://unixdate.com/api/" + ts)
.then(r => r.json())
.then(data => {
console.log("UTC:", data.utc.human);
console.log("Local:", data.local.human);
});

Returns: JSON response with timestamp details

Example JSON response for the current timestamp

{
    "ok": true,
    "input": "1791817270",
    "serverNow": 1791821381,
    "interpretedUnit": "s",
    "unix": {
        "seconds": 1791817270,
        "milliseconds": 1791817270000
    },
    "utc": {
        "human": "2026-10-12 15:01:10 UTC",
        "iso8601": "2026-10-12T15:01:10Z"
    },
    "local": {
        "timezone": "Europe\/Helsinki",
        "human": "2026-10-12 18:01:10",
        "iso8601": "2026-10-12T18:01:10"
    },
    "relativeToServerNow": "1 hours ago"
}

UnixDate JSON API

Use UnixDate as a simple, stateless JSON API. No keys, no auth. Send a timestamp in the URL and get UTC, ISO 8601, local time, and a relative description.

Endpoints

  • Current time: GET /api/now
  • Specific timestamp: GET /api/<timestamp> (seconds)
  • Root: GET /api (alias of now)

Examples

curl -s "https://unixdate.com/api/now"
curl -s "https://unixdate.com/api/1700000000"

Response fields

  • unix.seconds and unix.milliseconds
  • utc.human and utc.iso8601
  • local.human and local.iso8601 (server timezone)
  • relativeToServerNow (e.g. “3 hours ago”)

Notes

  • Inputs are interpreted as seconds.
  • If you use milliseconds, convert to seconds first (divide by 1000).
  • The local section uses the server timezone: Europe/Helsinki.

Common Time Intervals in Seconds

Understanding common time intervals helps when working with Unix timestamps for scheduling, caching, or data retention periods.

Human-readable timeSeconds
1 minute60
1 hour3,600
1 day86,400
1 week604,800
1 month (30.44 days)2,629,743
1 year (365.24 days)31,556,926

Unix time in programming languages, databases and tools

Almost every language, database and platform has built-in support for Unix timestamps. Below are comprehensive examples for getting the current Unix time and converting between epoch and human-readable dates.

Get current epoch time

PHP - Get current timestamp

time()

Returns: 1791821381 (current Unix timestamp)

Python - Get current timestamp

import time; time.time()

Returns: 1791821381 (current Unix timestamp)

Ruby - Get current timestamp

Time.now.to_i

Returns: 1791821381 (current Unix timestamp)

Perl - Get current timestamp

time

Returns: 1791821381 (current Unix timestamp)

Java - Get current timestamp

long epoch = System.currentTimeMillis() / 1000;

Returns: 1791821381 (current Unix timestamp)

C# - Get current timestamp

DateTimeOffset.Now.ToUnixTimeSeconds()

Returns: 1791821381 (current Unix timestamp)

Objective-C - Get current timestamp

[[NSDate date] timeIntervalSince1970]

Returns: 1791821381 (current Unix timestamp)

C++11 - Get current timestamp

auto now = std::chrono::duration_cast(std::chrono::system_clock::now().time_since_epoch()).count();

Returns: 1791821381 (current Unix timestamp)

Lua - Get current timestamp

os.time()

Returns: 1791821381 (current Unix timestamp)

AutoIT - Get current timestamp

_DateDiff('s', "1970/01/01 00:00:00", _NowCalc())

Returns: 1791821381 (current Unix timestamp)

Delphi - Get current timestamp

DateTimeToUnix(Now)

Returns: 1791821381 (current Unix timestamp)

Dart - Get current timestamp

DateTime.now().millisecondsSinceEpoch ~/ 1000

Returns: 1791821381 (current Unix timestamp)

R - Get current timestamp

as.numeric(Sys.time())

Returns: 1791821381 (current Unix timestamp)

Erlang/OTP - Get current timestamp

erlang:system_time(seconds)

Returns: 1791821381 (current Unix timestamp)

MySQL - Get current timestamp

SELECT UNIX_TIMESTAMP(NOW())

Returns: 1791821381 (current Unix timestamp)

PostgreSQL - Get current timestamp

SELECT EXTRACT(EPOCH FROM NOW())

Returns: 1791821381 (current Unix timestamp)

SQLite - Get current timestamp

SELECT strftime('%s', 'now')

Returns: 1791821381 (current Unix timestamp)

Oracle PL/SQL - Get current timestamp

SELECT (CAST(SYS_EXTRACT_UTC(SYSTIMESTAMP) AS DATE) - TO_DATE('01/01/1970','DD/MM/YYYY')) * 24 * 60 * 60 FROM DUAL

Returns: 1791821381 (current Unix timestamp)

SQL Server - Get current timestamp

SELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE())

Returns: 1791821381 (current Unix timestamp)

IBM Informix - Get current timestamp

SELECT dbinfo('utc_current') FROM sysmaster:sysdual

Returns: 1791821381 (current Unix timestamp)

JavaScript - Get current timestamp

Math.floor(Date.now() / 1000)

Returns: 1791821381 (current Unix timestamp)

Visual FoxPro - Get current timestamp

DATETIME() - {^1970/01/01 00:00:00}

Returns: 1791821381 (current Unix timestamp)

Go - Get current timestamp

time.Now().Unix()

Returns: 1791821381 (current Unix timestamp)

Adobe ColdFusion - Get current timestamp

<cfset epochTime = left(getTickcount(), 10)>

Returns: 1791821381 (current Unix timestamp)

Tcl/Tk - Get current timestamp

clock seconds

Returns: 1791821381 (current Unix timestamp)

Unix/Linux Shell - Get current timestamp

date +%s

Returns: 1791821381 (current Unix timestamp)

Solaris - Get current timestamp

/usr/bin/nawk 'BEGIN {print srand()}'

Returns: 1791821381 (current Unix timestamp)

PowerShell - Get current timestamp

[DateTimeOffset]::UtcNow.ToUnixTimeSeconds()

Returns: 1791821381 (current Unix timestamp)

Other OS's - Get current timestamp

perl -e "print time"

Returns: 1791821381 (current Unix timestamp)

Convert from human-readable date to epoch

PHP - Convert date to timestamp

strtotime("2026-10-12 19:09:41")

Returns: 1791821381 (Unix timestamp for 2026-10-12 19:09:41 UTC)

Python - Convert date to timestamp

import calendar, time
calendar.timegm(time.strptime('2026-10-12 19:09:41', '%Y-%m-d %H:%M:%S'))

Returns: 1791821381 (Unix timestamp for 2026-10-12 19:09:41 UTC)

Ruby - Convert date to timestamp

Time.gm(2026, 10, 12, 19, 09, 41).to_i

Returns: 1791821381 (Unix timestamp for 2026-10-12 19:09:41 UTC)

Java - Convert date to timestamp

new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse("2026-10-12 19:09:41").getTime() / 1000

Returns: 1791821381 (Unix timestamp for 2026-10-12 19:09:41 UTC)

MySQL - Convert date to timestamp

SELECT UNIX_TIMESTAMP('2026-10-12 19:09:41')

Returns: 1791821381 (Unix timestamp for 2026-10-12 19:09:41 UTC)

PostgreSQL - Convert date to timestamp

SELECT EXTRACT(EPOCH FROM TIMESTAMP '2026-10-12 19:09:41')

Returns: 1791821381 (Unix timestamp for 2026-10-12 19:09:41 UTC)

SQLite - Convert date to timestamp

SELECT strftime('%s', '2026-10-12 19:09:41')

Returns: 1791821381 (Unix timestamp for 2026-10-12 19:09:41 UTC)

SQL Server - Convert date to timestamp

SELECT DATEDIFF(s, '1970-01-01 00:00:00', '2026-10-12 19:09:41')

Returns: 1791821381 (Unix timestamp for 2026-10-12 19:09:41 UTC)

JavaScript - Convert date to timestamp

Math.floor(new Date('2026-10-12T19:09:41Z').getTime() / 1000)

Returns: 1791821381 (Unix timestamp for 2026-10-12 19:09:41 UTC)

Unix/Linux Shell - Convert date to timestamp

date -d "2026-10-12 19:09:41" +%s

Returns: 1791821381 (Unix timestamp for 2026-10-12 19:09:41 UTC)

Convert from epoch to human-readable date

PHP - Convert timestamp to date

date('Y-m-d H:i:s', 1791821381)

Returns: 2026-10-12 19:09:41

Python - Convert timestamp to date

import datetime
datetime.datetime.utcfromtimestamp(1791821381).strftime('%Y-%m-d %H:%M:%S')

Returns: 2026-10-12 16:09:41

Ruby - Convert timestamp to date

Time.at(1791821381).utc.strftime('%Y-%m-d %H:%M:%S')

Returns: 2026-10-12 16:09:41

Java - Convert timestamp to date

new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date(1791821381 * 1000L))

Returns: 2026-10-12 16:09:41

MySQL - Convert timestamp to date

SELECT FROM_UNIXTIME(1791821381)

Returns: 2026-10-12 19:09:41

PostgreSQL - Convert timestamp to date

SELECT TO_TIMESTAMP(1791821381)

Returns: 2026-10-12 16:09:41+00

SQLite - Convert timestamp to date

SELECT datetime(1791821381, 'unixepoch')

Returns: 2026-10-12 16:09:41

SQL Server - Convert timestamp to date

SELECT DATEADD(s, 1791821381, '1970-01-01 00:00:00')

Returns: 2026-10-12 16:09:41.000

JavaScript - Convert timestamp to date

new Date(1791821381 * 1000).toISOString().replace('T', ' ').replace(/\..*/, '')

Returns: 2026-10-12 16:09:41

Unix/Linux Shell - Convert timestamp to date

date -d @1791821381 -u

Returns: Mon Oct 12 16:09:41 2026 UTC