Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

Mainframe date converter

Julian YYDDD, CYYDDD, Lilian days and STCK clock values to real dates.Use this when a file or dump shows a date as YYDDD, CYYDDD, 0CYYDDDF, a Lilian day or a STCK clock value.

Checked against IBM rulesON THIS DEVICE · NOTHING UPLOADEDCounting requests…
How to use this tool

What it does

Converts mainframe dates (Julian, CYYDDD, Lilian day numbers and STCK clock values) into ordinary dates and back.

How to use it

  1. Type a date in any of the listed forms, or a Lilian number.
  2. The other forms appear as you type; no button is needed.
  3. Or type a STCK value to get the UTC date and time.

What it cannot do

  • Two-digit years use the window you set; your program's own window may differ.
  • STCK values are shown in UTC only.

This tool opens with an example already filled in.

 

STCK time-of-day clock

● DATE
● STCK CLOCK

The clock counts from 1 January 1900 UTC; bit 51 is one microsecond. Whether leap seconds are included depends on the system's clock settings, so a value may differ from UTC by up to the current leap-second count.

ACCURACY · CHECKED AGAINST IBM RULES

Follows the TIME macro, Language Environment (Lilian) and TOD clock definitions; covered by tests. STCK values are shown in UTC.

What it checks

  • ConfirmedJulian dates YYDDD and YYYYDDD, and CYYDDD where C is 0 for 19xx and 1 for 20xx.
  • ConfirmedThe packed TIME macro form 0CYYDDDF.
  • ConfirmedLilian day numbers (day 1 is 15 October 1582, as in Language Environment CEEDAYS).
  • ConfirmedSTCK time-of-day clock values (64-bit, bit 51 is one microsecond, epoch 1 January 1900), shown in UTC.

What it does not check

  • Depends on your systemTwo-digit years are placed by the window you set (default from 1950); your program's own windowing may differ.
  • UnsupportedTime zones and leap seconds: STCK values are shown in UTC only.
  • UnsupportedDates in other calendars or in other date-format options of your applications.

Source

  • z/OS TIME macro (DATETYPE=YYDDD), as recorded in docs/FACTS.md
  • Language Environment CEEDAYS definition (Lilian day 1), as recorded in docs/FACTS.md
  • z/Architecture TOD clock; the value for 1 January 1970, X'7D91048BCA000000', is cross-checked by calculation in the tests (docs/FACTS.md)

Checked against IBM rules. Status labels: Confirmed Depends on your system Unsupported (a rule with an official source; depends on your catalog, security, installation defaults or compiler options; not parsed and shown instead of guessing).

Input limits and example

  • Each box: 200,000 characters.

EXAMPLE INPUT

2026299  ->  26 October 2026 (Julian year 2026, day 299)

Check it yourself in one minute

  1. Open your browser's developer tools: in Chrome or Edge press F12 or right-click and choose Inspect; in Firefox press Ctrl+Shift+E for the Network Monitor; in Safari first turn on Show features for web developers under Settings, Advanced. Then open the Network tab.
  2. Keep the log across page loads (Chrome: Preserve log; Firefox: Persist Logs), then use the tool: paste your text or open a file and press the button.
  3. Look at the list. You will see only this page and its own files, loaded when the page opened. Nothing new appears when you use the tool.
  4. Still unsure? Switch Wi-Fi off and try again. The tool still works.

What the badge counts: requests the browser logged after this page finished loading, other than the site's own files. It reads the browser's own record and makes no request of its own. If your browser cannot give that record, the badge says so. The badge is a convenience; the developer tools are the proof.

The rule that enforces it

Every page carries this Content Security Policy. The browser itself refuses any request outside it; connect-src 'none' blocks fetch, XHR and WebSocket.

default-src 'none';
script-src 'self';
style-src 'self';
img-src 'self' data:;
font-src 'self';
connect-src 'none';
object-src 'none';
form-action 'none';
base-uri 'none';
manifest-src 'self';
worker-src 'self'