PageSourceSearch

https://lanangplaywin.life/time.js

js lanangplaywin.life collected 2026-10-09 05:10:46 UTC 896 bytes, 32 lines download raw bytes

1/* eslint-disable no-undef */
2
3const timezoneHtml = document.getElementById("timezone");
4
5const timezoneString = timezoneHtml.innerHTML;
6
7function exec() {
8  setInterval(async () => {
9    const date = new Date();
10
11    const day = date.getDate().toString().padStart(2, "0");
12    const month = (date.getMonth() + 1).toString().padStart(2, "0");
13    const year = date.getFullYear();
14
15    const hours = date.getHours().toString().padStart(2, "0");
16    const minutes = date.getMinutes().toString().padStart(2, "0");
17    const ampm = date.getHours() >= 12 ? "PM" : "AM";
18    let timezone = date
19      .toLocaleString("en", { timeZoneName: "short" })
20      .split(" ")[2];
21
22    if (timezoneString) timezone = timezoneString;
23
24    const formattedDate = `${day}/${month}/${year} ${hours}:${minutes} ${ampm} (${timezone})`;
25
26    AMP.setState({
27      timeText: formattedDate,
28    });
29  }, 2000);
30}
31
32exec();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.