vasilenko.info

Timestamp converter

/en/tool/timestamp-converter/ works Calculated in your browser

Paste anything that looks like a time into the field — a number, ISO string, date from an email, log line, or ObjectId from MongoDB — and the converter will identify how it interpreted the value and show the moment in all common formats at once, in any time zone. It also shows the difference between two moments, lets you shift a moment by an interval, provides calendar details, and parses an entire column of values with CSV export.

promoTwenty years of notes on websitesHow we did it in 2008 and what still works today.Open

Time conversion

One field for everything: a number, date, or log string. The tool identifies what it is and shows where it went wrong if it misinterprets it.

Right now

Unix, seconds

Unix, milliseconds
ISO 8601, UTC
In the selected time zone

A number in seconds, milliseconds, microseconds, or nanoseconds; ISO 8601 with or without an offset; RFC 2822 and HTTP-date from headers and emails; 17.08.2026 09:30; \/Date(1755417600000)\/ from ASP.NET; ObjectId from MongoDB; FILETIME, WebKit, .NET ticks, Excel serial number, Julian day.

Start typing a name—the browser will suggest matches from the full IANA list. The time zone applies both to parsing dates without an offset and to all output.

Russian time zones and neighbors

How to interpret the number if detected incorrectly

For a date and a string with an offset, the toggle has no effect: they are unambiguous.

A date without an offset is read

If the string contains Z or an offset such as +03:00, that offset is used and the toggle has no effect.

One moment in different formats

Done

Moment representations; the button on the right copies one line
Format Value Copy

    Weekday
    Relative to now
    Shift of the selected time zone
    Your clock vs. the server clock

    Translation, parsing, and all tables run in the browser: neither the entered value nor the contents of the batch field are sent anywhere. The only server request is an empty HEAD request to this same page, used to compare your clock with the server clock; it contains none of your field values.

    If this isn't Unix time

    The same number represents different dates in different systems. On the left is what you get when you read the input as belonging to another epoch; on the right is how the parsed moment is represented in that epoch.

    Other epochs and scales
    Epoch If the input uses it Moment in this scale Copy

    Calendar details

    The week number, day of the year, quarter, and the boundaries of the day, week, month, and year — all at once in the timestamp, so you don't have to assemble them manually with a query.

    Parse the moment using the selected time zone's calendar
    Metric Value Unix, seconds Copy

    Difference and arithmetic

    Both fields understand the same formats as the main field: a number, an ISO string, or a date from an email. Calculations use the selected time zone's calendar, so daylight saving time is taken into account.

    Start of the interval.

    End of the interval. If it is earlier than A, the difference is calculated with its sign.

    Moment plus or minus an interval

    Empty means use the moment parsed above.

    You can enter several chunks in a row: “+1 month −3 hours”, “+2w 4h”, “-45 minutes”.

    Value column and log chunks

    Paste the entire export — you don't need to clean it down to one column. Each row is scanned for the first thing that looks like a time; everything else is kept as is to identify the row.

    What to look for in the row

    Empty

    Breakdown by line
    Line Found Counted as In the selected time zone ISO 8601, UTC Relative to now

    How to do the same in code

    The value and explanation have already been filled in from the panel above. You can copy and paste the code without adding anything.

    Language
    example.php
    promoCalculate ROI at the same timeCampaign payback based on spend and revenue.Open

    How to use it

    1. Enter a value in the single field. A number, ISO string, date from an email, ObjectId, or log string fragment—all are parsed, and the label next to it states how the tool interpreted the value. If that interpretation is wrong, correct it with the unit switch.

    2. Select a time zone. The browser provides the full IANA list, while Russian time zones are shown as buttons on a separate line. The zone is applied immediately both to dates without an offset and to all output.

    3. Use the button for the required row in the format table: ISO, RFC 2822, HTTP-date, SQL, a PostgreSQL expression, and a microsecond representation are shown side by side, so you do not need to copy an entire block for a single row.

    4. The difference between two moments and shifting by an interval are in a separate section below. Both fields accept the same input as the main field, while “2 years 3 months 11 days” is calculated according to the selected time zone's calendar.

    5. Paste a column of values or a log fragment into the batch field as is: there is no need to clean it up. The time is extracted from each line automatically, and the table can be exported to CSV.

    6. The result link puts the value, unit, and time zone in the page address. You can send the link to someone else, and they will see exactly the same result.

    promoBrowser task listNo account required—everything is stored on your device.Open

    The formula and what it includes

    timestamp = the number of seconds elapsed since January 1, 1970, in UTC

    Unix time has no leap seconds: a day always contains exactly 86,400 seconds. As a result, it differs from astronomical time by several dozen seconds, which is precisely why it is convenient for calculating intervals. GPS time also has no leap seconds, but its count began in 1980 and has since moved 18 seconds ahead of UTC—those seconds must be subtracted separately.

    Example calculation: exactly one billion seconds

    The input data is the same as the default field values: you can calculate it mentally and confirm that the tool is telling the truth.

    1. A day has 86,400 seconds.

    2. 1 000 000 000 ÷ 86 400 = 11,574 days and 6,400 seconds remaining.

    3. Remainder: 6,400 seconds is 1 hour, 46 minutes, and 40 seconds.

    4. 11,574 days after January 1, 1970 is September 9, 2001.

    5. In September 2001, Moscow used UTC+4—daylight saving time was still observed—so four hours are added to the value.

    The result is September 9, 2001, at 01:46:40 UTC and 05:46:40 in Moscow. It was a Sunday, the 36th week of the year, and the 252nd day. In milliseconds, it is 1 000 000 000 000; in hexadecimal, 0x3B9ACA00.

    Frequently asked questions

    promoAll toolsForty-four tools, all running in your browser.Open

    Related tools

    6

    MD5 and SHA hashes

    Calculates MD5, SHA-1, SHA-256, and SHA-512 hashes for a string or file.

    Open

    Password generator

    Creates passwords of the required length and assesses how difficult they are to crack.

    Open