<script>

let ok= new Date(document.lastModified);

async function ajax(url){
let r= await fetch(url);
if(!r.ok) throw new Error(r.status);
return Object.fromEntries(r.headers.entries());
}

let url0= location.href;
let url= "https://kawiesh.tk/suriname.js";

ajax(url).then(headers=>{
let date= headers["last-modified"];

let _date= new Date(date).toLocaleDateString("en-US",{
//weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric'
});

let _time= new Date(date).toLocaleTimeString("en-US",{
hour: '2-digit',
minute: '2-digit'
});

document.write(`Stations updated on ${_date} @ ${_time}<br>${ok}`);
}).catch(x=> alert(x));


</script>
