Blog

Read Unix timestamps in JST and set the start of a log search

Use a fictional API log to read Unix milliseconds in Japan Standard Time and UTC, then calculate the starting timestamp for a log search from midnight in Japan.

Unix timestamp results in JST and UTC in the English interface

Suppose you are investigating an event around midnight on January 1 in Japan. A fictional API log records its time as 1735657200125. Use the Unix Timestamp Converter to find the local time and the start value for your search.

Read log milliseconds in JST and UTC

  1. Check the API field documentation for the time unit. In this example the log uses Unix milliseconds.
  2. Enter 1735657200125 in “Unix timestamp” and choose “Milliseconds” under “Input unit”.
  3. JST shows 2025-01-01 00:00:00.125 and UTC shows 2024-12-31 15:00:00.125. These are the same instant, 125 milliseconds into the new year in Japan.
The English interface shows 1735657200125 converted to January 1 in JST and December 31 in UTC
Midnight in Japan falls in the 15:00 hour of the previous day in UTC.

Recent timestamps often have 10 digits in integer seconds or 13 in milliseconds. Reading 1735657200 as milliseconds produces a date in January 1970. Check the documented unit before converting.

Search logs from midnight in Japan

  1. In “Date and time to Unix timestamp”, enter 2025-01-01 00:00 in “Date and time”. Omitted seconds default to zero.
  2. Choose “Japan Standard Time (UTC+09:00)” under “Input time zone”. The results update automatically.
  3. Use 1735657200 if the search takes seconds or 1735657200000 if it takes milliseconds. Include the start instant in the search. The example log occurs 125 milliseconds later.
The English interface shows January 1 at midnight JST converted to 1735657200 seconds and 1735657200000 milliseconds
Use the output that matches the search field’s unit.

For a time recorded in UTC, choose “Coordinated Universal Time (UTC)”. Changing the time zone for the same date and time changes the result by nine hours. This tool uses UTC+09:00 for JST throughout its supported range and does not handle leap seconds.