Conceptcore
Unix time
Also called POSIX time, epoch time, Unix timestamp, epoch seconds, seconds since the epoch, time_t, the Unix epoch, year 2038 problem, Y2038.
Unix time is the number of seconds since 1970-01-01 00:00:00 UTC, with each day counted as exactly 86400 seconds. Most systems store and send instants in this form.
- Applies to
- core-languages
Idea
Unix time gives each instant one number. The number is the count of seconds after a fixed instant, the Unix epoch: 1970-01-01 00:00:00 UTC. In the words of the encyclopedia: "It measures time by the number of non-leap seconds that have elapsed since 00:00:00 UTC on 1 January 1970, the Unix epoch."1 Thus 0 is the epoch, 1709985600 is 2024-03-09 12:00:00 UTC, and a negative number is an instant before 1970.
The count has one rule that makes it simple: POSIX says "As represented in seconds since the Epoch, each and every day shall be accounted for by exactly 86400 seconds."2 Because of this rule, a program can get the day and the time of day with one division, and it can get the number back from calendar fields with a fixed expression.
from datetime import datetime, timezone
t = 1709985600
# Each day is 86400 seconds: days since the epoch and the second of the day.
print(divmod(t, 86400))
print(datetime.fromtimestamp(t, tz=timezone.utc))
# The POSIX expression from the fields year - 1900, day of the year (from 0),
# hour, minute and second.
def posix_seconds(tm_year, tm_yday, hour, minute, sec):
return (sec + minute * 60 + hour * 3600 + tm_yday * 86400
+ (tm_year - 70) * 31536000 + ((tm_year - 69) // 4) * 86400
- ((tm_year - 1) // 100) * 86400 + ((tm_year + 299) // 400) * 86400)
print(posix_seconds(124, 68, 12, 0, 0))
# Many APIs count milliseconds instead of seconds.
print(t * 1000)
(19791, 43200)
2024-03-09 12:00:00+00:00
1709985600
1709985600000
The day 2024-03-09 is day 19791 after the epoch, and 43200 seconds is 12:00. The expression gives the same number from the fields. A Unix time has no time zone: it names an instant, and a program picks a zone only to show it.
How it works
The count. The number goes up by 1 for each second. Python defines the epoch as "the point where the time starts, the return value of time.gmtime(0). It is January 1, 1970, 00:00:00 (UTC) on all platforms."3 The value is a plain integer, so a program can store, compare, sort and subtract it with no time library. When no leap second falls between two instants, "the difference between two Unix time numbers is equal to the duration in seconds of the period between the corresponding points in time."1
From fields to a number. POSIX defines the number for a UTC date and time with an expression in C. It adds the seconds, minutes, hours and days of the year, 365 days for each year after 1970, and a day for each leap year. The last three terms of the expression are the Gregorian leap-year rule: a day every 4 years, minus a day every 100 years, plus a day every 400 years2. The function posix_seconds in the Idea section is this expression. The reverse is a division by 86400, then a conversion of the day count to a date. See Calendar arithmetic.
Leap seconds. UTC has had 27 leap seconds since 19724, and a UTC day with a leap second has 86401 seconds. Unix time does not count them. POSIX says that the relation of its count to the actual UTC time "is unspecified"2. On a conforming system, "Unix time numbers are repeated in the second immediately following a positive leap second."1 Thus across a leap second, "such calculations give the wrong answer."1 Java names the same idea the Java Time-Scale: "The Java Time-Scale divides each calendar day into exactly 86400 subdivisions, known as seconds. These seconds may differ from the SI second."5 See Leap seconds.
The unit. The original unit is the second, but many APIs count a smaller unit from the same epoch. JavaScript counts milliseconds: "The Date.now() static method returns the number of milliseconds elapsed since the epoch, which is defined as the midnight at the beginning of January 1, 1970, UTC."6 Java System.currentTimeMillis also "Returns the current time in milliseconds."7 Go and Python also give nanoseconds. The number does not show its unit, so a program must know it from the API or the name of the field.
The width. The C type time_t holds the count. C does not fix its form: "The encoding of calendar time in time_t is unspecified, but most systems conform to POSIX specification and return a value of integral type holding the number of seconds since the Epoch."8 A signed 32-bit time_t ends in 2038. A 64-bit one lasts far beyond any date that a program needs.
In languages
| Language | Verdict | Note |
|---|---|---|
| Python | Standard library | |
| C++ | Standard library | |
| Java | Standard library | |
| C | Standard library | |
| C# | Standard library | |
| JavaScript | Native | |
| TypeScript | Native | TypeScript uses the JavaScript Date.now, getTime and Temporal.Instant, which count milliseconds or nanoseconds since the epoch. No example file exists. |
| Go | Standard library | |
| Rust | Standard library | |
| Kotlin | Standard library | On the JVM, Kotlin uses java.time.Instant with ofEpochSecond and getEpochSecond, and System.currentTimeMillis. The library kotlinx-datetime has an Instant with the same conversions on all platforms. No example file exists because kotlinc is not installed. |
| SQL | Idiom | Standard SQL has no function for Unix time. Each system has its own: extract(epoch from ...) and to_timestamp in PostgreSQL, UNIX_TIMESTAMP and FROM_UNIXTIME in MySQL, and unixepoch in SQLite. |
| Bash | Idiom | |
| PowerShell | Standard library | PowerShell uses the .NET methods, such as [DateTimeOffset]::UtcNow.ToUnixTimeSeconds() and [DateTimeOffset]::FromUnixTimeSeconds(). Get-Date -UFormat %s prints the current Unix time. No example file exists because pwsh is not installed. |
| HTML | Does not apply | HTML has no Unix time. The datetime attribute of the time element and the date inputs use text in ISO 8601 form. |
| CSS | Does not apply | CSS has no dates or timestamps. |
| Regular expressions | Does not apply | A regular expression has no time values. A pattern can only check that a string has the digits of a timestamp. |
| Language | Verdict | Mechanism |
|---|---|---|
| Python | stdlib | time.time() (a float) and time.time_ns(); datetime.fromtimestamp(), datetime.timestamp() and calendar.timegm() |
| JavaScript | native | Date.now() and getTime() in milliseconds; new Date(ms); Temporal.Instant with epochMilliseconds and epochNanoseconds |
| TypeScript | native | the JavaScript Date and Temporal |
| Java | stdlib | Instant.ofEpochSecond(), getEpochSecond() and toEpochMilli(); System.currentTimeMillis() |
| Kotlin | stdlib | java.time.Instant on the JVM; Instant of kotlinx-datetime on all platforms |
| C# | stdlib | DateTimeOffset.FromUnixTimeSeconds(), ToUnixTimeSeconds() and ToUnixTimeMilliseconds(); DateTime.UnixEpoch |
| Go | stdlib | time.Unix(), time.UnixMilli(); the methods Unix(), UnixMilli() and UnixNano() |
| Rust | stdlib | SystemTime::now(), UNIX_EPOCH and duration_since() |
| C | stdlib | time() and time_t; timespec_get(); gmtime() for the fields |
| C++ | stdlib | std::chrono::system_clock, sys_seconds and sys_days; to_time_t() |
| Bash | idiom | EPOCHSECONDS, EPOCHREALTIME and the format %(datefmt)T of printf; the external command date +%s |
| PowerShell | stdlib | [DateTimeOffset]::UtcNow.ToUnixTimeSeconds(); Get-Date -UFormat %s |
| SQL | idiom | no standard function; each system has its own, such as extract(epoch from ...) and to_timestamp() in PostgreSQL, UNIX_TIMESTAMP() in MySQL and unixepoch() in SQLite |
| Regex | n/a | no time values |
| HTML | n/a | dates in HTML are text in ISO 8601 form, not numbers |
| CSS | n/a | no dates |
Most languages have a direct conversion between their instant type and a Unix time. In Java, "The epoch-seconds are measured from the standard Java epoch of 1970-01-01T00:00:00Z where instants after the epoch have positive values, and earlier instants have negative values."5 In Go, "Unix returns t as a Unix time, the number of seconds elapsed since January 1, 1970 UTC."9 In .NET, "Unix time represents the number of seconds that have elapsed since 1970-01-01T00:00:00Z (January 1, 1970, at 12:00 AM UTC). It does not take leap seconds into account."10
The C++ system_clock "measures Unix Time (i.e., time since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, not counting leap seconds)."11 Rust keeps the epoch as a constant, UNIX_EPOCH, which is "An anchor in time which can be used to create new SystemTime instances or learn about where in time a SystemTime lies."12 In Bash, EPOCHSECONDS is a variable: "Each time this parameter is referenced, it expands to the number of seconds since the Unix Epoch"13.
The example files convert 1709985600 to a date and time in UTC and back in each language. They also show milliseconds, a value before 1970 and the end of a signed 32-bit count. The C example computes the POSIX expression from a struct tm.
import time
from datetime import datetime, timezone
t = 1709985600
# From a Unix time to a date and time in UTC, and back.
print(datetime.fromtimestamp(t, tz=timezone.utc).isoformat())
print(int(datetime(2024, 3, 9, 12, tzinfo=timezone.utc).timestamp()))
# The epoch is the instant 0.
print(time.gmtime(0)[:6])
# A value in milliseconds must be divided by 1000 first.
ms = 1709985600123
print(datetime.fromtimestamp(ms / 1000, tz=timezone.utc).isoformat(timespec="milliseconds"))
# A negative value is an instant before 1970.
print(datetime.fromtimestamp(-1, tz=timezone.utc).isoformat())
# time() gives a float, and time_ns() gives an exact integer.
print(type(time.time()).__name__, type(time.time_ns()).__name__)
2024-03-09T12:00:00+00:00
1709985600
(1970, 1, 1, 0, 0, 0)
2024-03-09T12:00:00.123+00:00
1969-12-31T23:59:59+00:00
float int
- Verdict: stdlib. time.time gives the current Unix time as a float and time.time_ns as an integer of nanoseconds. datetime.fromtimestamp and datetime.timestamp convert between a Unix time and a datetime, and calendar.timegm converts UTC fields to a Unix time.
#include <chrono>
#include <format>
#include <iostream>
int main() {
using namespace std::chrono;
// A time point of system_clock counts Unix time.
sys_seconds t{seconds{1709985600}};
std::cout << std::format("{:%FT%TZ}", t) << '\n';
std::cout << t.time_since_epoch().count() << ' '
<< time_point_cast<milliseconds>(t).time_since_epoch().count() << '\n';
// Days since the epoch, and a date with a time turned back into seconds.
sys_days day = floor<days>(t);
std::cout << day.time_since_epoch().count() << ' ' << year_month_day{day} << '\n';
sys_seconds noon = sys_days{year{2024} / March / 9} + 12h;
std::cout << noon.time_since_epoch().count() << '\n';
}
2024-03-09T12:00:00Z
1709985600 1709985600000
19791 2024-03-09
1709985600
- Verdict: stdlib. std::chrono::system_clock counts Unix time, and sys_seconds and sys_days are its time points in seconds and days. system_clock::to_time_t and from_time_t convert to and from the C type time_t.
import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
public class Main {
public static void main(String[] args) {
// An Instant stores seconds since the epoch and a nanosecond part.
Instant t = Instant.ofEpochSecond(1709985600L);
System.out.println(t);
System.out.println(t.getEpochSecond() + " " + t.toEpochMilli());
System.out.println(Instant.ofEpochMilli(1709985600123L));
// Fields in UTC to seconds since the epoch.
LocalDateTime noon = LocalDateTime.of(2024, 3, 9, 12, 0);
System.out.println(noon.toEpochSecond(ZoneOffset.UTC));
// The last second of a signed 32-bit count, and what comes after it.
System.out.println(Instant.ofEpochSecond(Integer.MAX_VALUE));
int wrapped = Integer.MAX_VALUE + 1;
System.out.println(wrapped + " " + Instant.ofEpochSecond(wrapped));
}
}
2024-03-09T12:00:00Z
1709985600 1709985600000
2024-03-09T12:00:00.123Z
1709985600
2038-01-19T03:14:07Z
-2147483648 1901-12-13T20:45:52Z
- Verdict: stdlib. Instant.ofEpochSecond, Instant.ofEpochMilli, getEpochSecond and toEpochMilli convert between an Instant and a Unix time. System.currentTimeMillis gives the current time in milliseconds as a long.
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <time.h>
// The POSIX expression for seconds since the epoch, from the fields of a struct tm.
static long long posix_seconds(const struct tm *t) {
long long y = t->tm_year;
return t->tm_sec + t->tm_min * 60LL + t->tm_hour * 3600LL + t->tm_yday * 86400LL
+ (y - 70) * 31536000LL + ((y - 69) / 4) * 86400LL
- ((y - 1) / 100) * 86400LL + ((y + 299) / 400) * 86400LL;
}
int main(void) {
time_t t = 1709985600;
struct tm *utc = gmtime(&t);
char buf[32];
strftime(buf, sizeof buf, "%Y-%m-%dT%H:%M:%SZ", utc);
puts(buf);
printf("%d %lld\n", utc->tm_yday, posix_seconds(utc));
// The width of time_t on this system, in bits.
printf("%zu\n", sizeof(time_t) * 8);
// A signed 32-bit count wraps to 1901 one second after 2038-01-19T03:14:07Z.
int64_t next = (int64_t)INT32_MAX + 1;
int32_t wrapped = (int32_t)(uint32_t)next;
time_t back = wrapped;
strftime(buf, sizeof buf, "%Y-%m-%dT%H:%M:%SZ", gmtime(&back));
printf("%" PRId32 " %s\n", wrapped, buf);
return 0;
}
2024-03-09T12:00:00Z
68 1709985600
64
-2147483648 1901-12-13T20:45:52Z
- Verdict: stdlib. time gives the current calendar time as a time_t, which is a count of seconds since the epoch on POSIX systems. gmtime converts it to the fields of a struct tm in UTC, and timespec_get gives seconds and nanoseconds.
using System;
// DateTimeOffset converts to and from a Unix time in seconds or milliseconds.
var t = DateTimeOffset.FromUnixTimeSeconds(1709985600);
Console.WriteLine(t.ToString("O"));
Console.WriteLine(t.ToUnixTimeSeconds() + " " + t.ToUnixTimeMilliseconds());
Console.WriteLine(DateTimeOffset.UnixEpoch.ToString("O"));
// The same instant with a different offset has the same Unix time.
var tokyo = new DateTimeOffset(2024, 3, 9, 21, 0, 0, TimeSpan.FromHours(9));
Console.WriteLine(tokyo.ToUnixTimeSeconds());
// DateTime counts ticks of 100 ns from the year 1, not from 1970.
Console.WriteLine(DateTime.UnixEpoch.Ticks);
2024-03-09T12:00:00.0000000+00:00
1709985600 1709985600000
1970-01-01T00:00:00.0000000+00:00
1709985600
621355968000000000
- Verdict: stdlib. DateTimeOffset.FromUnixTimeSeconds, FromUnixTimeMilliseconds, ToUnixTimeSeconds and ToUnixTimeMilliseconds convert in both directions, and DateTime.UnixEpoch and DateTimeOffset.UnixEpoch are the epoch. The native count of DateTime is ticks since 0001-01-01.
const t = 1709985600;
// A Date holds milliseconds since the epoch, so multiply seconds by 1000.
const d = new Date(t * 1000);
console.log(d.toISOString());
console.log(d.getTime(), Math.floor(d.getTime() / 1000));
// Seconds where milliseconds are expected give a date in January 1970.
console.log(new Date(t).toISOString());
// The epoch is 0, and a negative value is before 1970.
console.log(Date.UTC(1970, 0, 1));
console.log(new Date(-1000).toISOString());
// The current time in milliseconds is an exact integer in a Number.
console.log(Number.isSafeInteger(Date.now()));
2024-03-09T12:00:00.000Z
1709985600000 1709985600
1970-01-20T18:59:45.600Z
0
1969-12-31T23:59:59.000Z
true
- Verdict: native. Date.now and Date.prototype.getTime give milliseconds since the epoch, and new Date(ms) converts back. Temporal.Instant gives the same count as epochMilliseconds and as a BigInt of nanoseconds in epochNanoseconds.
package main
import (
"fmt"
"time"
)
func main() {
// time.Unix makes a Time from seconds and nanoseconds since the epoch.
t := time.Unix(1709985600, 0).UTC()
fmt.Println(t.Format(time.RFC3339))
fmt.Println(t.Unix(), t.UnixMilli())
// The Unix time does not depend on the location of the Time.
tokyo := time.FixedZone("UTC+9", 9*60*60)
fmt.Println(t.In(tokyo).Unix() == t.Unix())
fmt.Println(time.UnixMilli(1709985600123).UTC().Format(time.RFC3339Nano))
// A signed 32-bit count wraps to 1901 one second after its maximum.
var small int32 = 2147483647
small++
fmt.Println(small, time.Unix(int64(small), 0).UTC().Format(time.RFC3339))
}
2024-03-09T12:00:00Z
1709985600 1709985600000
true
2024-03-09T12:00:00.123Z
-2147483648 1901-12-13T20:45:52Z
- Verdict: stdlib. time.Unix, time.UnixMilli and time.UnixMicro make a Time from a Unix time, and the methods Unix, UnixMilli, UnixMicro and UnixNano give it back as an int64.
use std::time::{Duration, SystemTime, UNIX_EPOCH};
fn main() {
// A SystemTime is the epoch plus a Duration.
let t = UNIX_EPOCH + Duration::from_secs(1_709_985_600);
let d = t.duration_since(UNIX_EPOCH).unwrap();
println!("{} {}", d.as_secs(), d.as_millis());
// Every day has 86400 seconds, so a division gives days and the time of day.
println!("{} {}", d.as_secs() / 86_400, d.as_secs() % 86_400);
// duration_since returns an error for a time before the epoch.
let before = UNIX_EPOCH - Duration::from_secs(1);
println!("{}", before.duration_since(UNIX_EPOCH).is_err());
let now = SystemTime::now().duration_since(UNIX_EPOCH).unwrap();
println!("{}", now.as_secs() > 1_700_000_000);
// A 32-bit count has no next second after i32::MAX.
println!("{:?}", i32::MAX.checked_add(1));
}
1709985600 1709985600000
19791 43200
true
true
None
- Verdict: stdlib. SystemTime::now and the constant UNIX_EPOCH give a Unix time as a Duration through duration_since, which returns an error for a time before the epoch. The standard library has no conversion to calendar fields; the crates chrono, time and jiff have it.
export TZ=UTC
t=1709985600
# The printf format %(...)T formats a Unix time with strftime.
printf '%(%Y-%m-%dT%H:%M:%SZ)T\n' "$t"
printf '%(%Y-%m-%d)T\n' 0
# Integer arithmetic gives the days since the epoch and the second of the day.
echo $((t / 86400)) $((t % 86400))
# EPOCHSECONDS is the current Unix time.
if ((EPOCHSECONDS > 1700000000)); then echo after-2023; fi
2024-03-09T12:00:00Z
1970-01-01
19791 43200
after-2023
- Verdict: idiom. Bash has no time type, but the variables EPOCHSECONDS and EPOCHREALTIME give the current Unix time, and the format %(datefmt)T of printf formats one. The external command date prints a Unix time with date +%s.
Variations and related ideas
- Other units. Milliseconds (JavaScript, Java), microseconds (
EPOCHREALTIMEin Bash) and nanoseconds (time_nsin Python,UnixNanoin Go) count from the same epoch. Python says: "Use time_ns() to avoid the precision loss caused by the float type."3 - Other epochs. .NET
DateTimecounts ticks of 100 nanoseconds from 0001-01-01, WindowsFILETIMEcounts from 1601, and the Network Time Protocol counts from 19001. The C# example prints the tick count of the Unix epoch. - Counts with leap seconds. Some systems count every second, which makes the count a form of TAI. This variant is "much rarer"1, and "some Linux systems are configured this way."1 See Leap seconds.
- Smeared leap seconds. Some services spread a leap second over many hours, so each second of the count is a bit longer and the count never repeats4. See Leap seconds.
- Text forms. A timestamp in an API is often text in the ISO 8601 form
2024-03-09T12:00:00Zinstead of a number. The text shows its unit and its zone, but it is longer. See ISO 8601.
Pitfalls
- Seconds where milliseconds are expected. A Unix time in seconds given to an API that expects milliseconds gives a date in January 1970. The other way, it gives a date thousands of years in the future. The JavaScript example shows
new Date(1709985600), which is 1970-01-20. Put the unit in the name of the field, such ascreated_at_ms. - The year 2038. A signed 32-bit count ends at 2038-01-19 03:14:07 UTC: "One second after 2038-01-19T03:14:07Z this representation will overflow in what is known as the year 2038 problem"1. After that second, the value wraps to 1901, as the Java, Go and C examples show. A 64-bit
time_tdoes not help when a program stores the value in a 32-bit field of a file format, a protocol or a database column. - Leap seconds in differences. The difference of two Unix times is not the true number of elapsed seconds when a leap second falls between them. For exact intervals, use a monotonic clock or a time scale such as TAI.
- Floats. A float of seconds loses precision. A 64-bit float has 53 bits of mantissa, so a current Unix time in a float keeps only about a quarter of a microsecond. Python
time.time()returns a float, and Python warns about this. Use integers of a fixed unit. - Values before 1970. POSIX defines the expression only for later times: "If the year is <1970 or the value is negative, the relationship is undefined."2 Most libraries accept negative values, but some functions and platforms reject them. In Rust,
duration_since(UNIX_EPOCH)returns an error for an earlier time. - The wall clock is not monotonic. The current Unix time comes from the system clock, which can move back. For Rust
SystemTime, "Distinct from the Instant type, this time measurement is not monotonic"12. Do not measure durations with it. See Measure elapsed time. - Local time added twice. A Unix time is already in UTC. Code that adds the offset of the local zone to it, and then formats it as local time, shows the offset two times. In Go, the value of
Unix()does not depend on the zone: "The result does not depend on the location associated with t."9
Cost
| Representation | Range | Resolution |
|---|---|---|
| signed 32-bit seconds | from 1901-12-13 to 2038-01-191 | 1 second |
| unsigned 32-bit seconds | from 1970 to 2106-02-0714 | 1 second |
| signed 64-bit seconds | about 292 billion years in both directions1 | 1 second |
JavaScript Date (milliseconds in a float) |
from April 20, 271821 BC to September 13, 275760 AD15 | 1 millisecond |
signed 64-bit nanoseconds (Go UnixNano) |
from 1678 to 22629 | 1 nanosecond |
64-bit float of seconds (Python time.time()) |
wide | about 0.24 microseconds in 2024 |
A Unix time costs one machine word. Comparison, sorting and subtraction are single integer operations, and a database can index the value as a plain integer. The conversion to calendar fields needs a division and a short computation for the year, the month and the day, but no table, because the count has no leap seconds and no zones. Go states the limit of its nanosecond form: "The result is undefined if the Unix time in nanoseconds cannot be represented by an int64 (a date before the year 1678 or after 2262)."9 The precision of the current time also depends on the system. For Java, "the granularity of the value depends on the underlying operating system and may be larger."7 Browsers can reduce the precision of Date.now() on purpose, "To offer protection against timing attacks and fingerprinting"6.
History
The first edition of the Unix Programmer's Manual, from 3 November 1971, says: "time returns the time since 00:00:00, Jan. 1, 1971, measured in sixtieths of a second."1 A 32-bit count of sixtieths lasts only about two years. The third edition of 15 March 1972 moved the epoch to 1972 and said: "This guarantees a crisis every 2.26 years."1 Later versions counted whole seconds from 1970. In the words of the encyclopedia: "The current epoch of 1 January 1970 00:00:00 UTC was selected arbitrarily by Unix engineers because it was considered a convenient date to work with."1
POSIX.1 fixed the definition of seconds since the Epoch, with the expression from fields and the rule of exactly 86400 seconds for each day2. It did not count leap seconds, so the count stays simple and is not exact across a leap second.
The year 2038 problem then became the main issue. An unsigned 32-bit type would last until 2106, but it "would adversely affect programs that store, retrieve, or manipulate dates prior to 1970"14. So systems moved to a signed 64-bit time_t. NetBSD 6.0 in October 2012 and OpenBSD 5.5 in May 2014 use a 64-bit time_t on 32-bit and 64-bit platforms14. On Linux, "Starting with version 5.6 of 2020, 64-bit time_t is supported on 32-bit architectures, too."14 The GNU C Library 2.34 of August 2021 lets a program choose a 64-bit time_t on 32-bit platforms with the macro _TIME_BITS14. C++20 defined system_clock as Unix time, which before was only the common practice11.
References
- Unix time, Wikipedia, Definition; Leap seconds; Representing the number; History; Range of representable times
- POSIX.1-2024, Base Definitions, General Concepts, 4.19 Seconds Since the Epoch
- time, Time access and conversions, The Python Standard Library, time.time; time.time_ns
- Leap second, Wikipedia, History; Leap second smearing
- Class Instant, Java SE 25 API, Description; Time-scale
- Date.now(), MDN Web Docs, Description; Reduced time precision
- Class System, Java SE 25 API, currentTimeMillis()
- time, cppreference.com, Notes
- Package time, Go standard library, func (Time) Unix; func (Time) UnixNano
- DateTimeOffset.ToUnixTimeSeconds Method, .NET API, Remarks
- std::chrono::system_clock, cppreference.com, Description
- Struct SystemTime, The Rust Standard Library, Description; UNIX_EPOCH
- Bash Reference Manual, 5.2 Bash Variables, EPOCHSECONDS
- Year 2038 problem, Wikipedia, Possible solutions; Implemented solutions
- Date, MDN Web Docs, The epoch, timestamps, and invalid date
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag VKCWQ7 Edit this page History Report an error Markdown