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
- Type a date in any of the listed forms, or a Lilian number.
- The other forms appear as you type; no button is needed.
- 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.
- Next tool: Packed decimal calculator ▸ See how a packed date looks in bytes.
- Guide: all the guides
STCK time-of-day 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.
Check it yourself in one minute
- 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.
- 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.
- 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.
- 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'Suggest a tool or report a wrong answer · How it works and why it is safe
No mail app opens? Write to hello@mainframepath.com . Please do not send confidential code or data.