1.2 KiB
1.2 KiB
title
| title |
|---|
| Systime |
You can use this form to convert to/from systime.
<script type="text/javascript">
document.getElementById('convert').addEventListener("click", (ev) => {
fetch(`https://systime.post-self.ink/api/1/systime/${document.getElementById('systime').value}`)
.then((response) => {
if (!response.ok) {
document.getElementById('output').innerHTML = `Error converting systime`;
throw new Error(response.status);
}
return response.json();
})
.then((json) => {
document.getElementById('output').innerHTML = `
- Systime
- ${json.systime.string}
- Gregorian
- ${json.gregorian.string}
- Hebrew
- ${json.hebrew.string}