2024-04-27 23:16:56 +02:00
< html >
< head >
< title >
Hey revi , what time is it for you ?
</ title >
2024-04-28 15:42:16 +02:00
< link rel = " icon " href = " https://r2.revicdn.net/pfp2.png " >
2024-04-27 23:16:56 +02:00
< style >
2024-04-30 11:27:26 +02:00
@ import url ( 'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans+KR:wght@300;400&family=Noto+Sans+KR&display=swap' );
2024-04-27 23:16:56 +02:00
body {
margin : 40 px auto ;
max - width : 650 px ;
line - height : 1.6 ;
font - size : 16 px ;
padding : 0 10 px ;
font - family :
'IBM Plex Sans KR' ,
'Noto Sans KR' ,
- apple - system ,
BlinkMacSystemFont ,
'Segoe UI' ,
Helvetica ,
Arial ,
sans - serif ,
'Apple Color Emoji' ,
'Segoe UI Emoji' ;
}
2024-04-30 11:27:26 +02:00
. code {
font - family :
'IBM Plex Mono' ,
'Courier New' ,
monospace ;
}
2024-04-27 23:16:56 +02:00
</ style >
</ head >
< body >
< ? php
2024-04-30 11:27:26 +02:00
// Set Cache-control to no-cache, permissions-policy, and provenlol header
header ( 'Cache-Control: no-cache, no-store, must-revalidate, max-age=0' );
header ( 'Permissions-Policy: interest-cohort=(),browsing-topics=()' );
header ( 'X-Proven: proven.lol/9d2ca2' );
2024-04-27 23:16:56 +02:00
// Create a DateTime object with Asia/Seoul timezone
$dateTimeSeoul = new DateTime ( 'now' , new DateTimeZone ( 'Asia/Seoul' ));
// Format date and time in ISO 8601 format
$date = $dateTimeSeoul -> format ( 'Y-m-d' );
$time = $dateTimeSeoul -> format ( 'H:i:s' );
// Create the Zonestamp link with current epoch time
$currentEpoch = time ();
$zonestampLink = " https://zonestamp.toolforge.org/ { $currentEpoch } " ;
// Display the message with formatted date, time, and Zonestamp link
2024-04-30 11:27:26 +02:00
< p >
echo " It is { $date } { $time } in <code>Asia/Seoul</code>, where <a rel='me' href='https://revi.xyz'>revi</a> lives.<br />Check in your timezone: <a href=' { $zonestampLink } '>ZoneStamp</a>. " ;
</ p >
2024-04-27 23:16:56 +02:00
?>
2024-04-30 11:27:26 +02:00
< br />
< hr >
< p >< a href = 'https://github.com/revi/sandbox/blob/master/time.php' > Source code @ GitHub </ a >. ( Warning : it is far from 'clean' . ) Also , please note that there is < a href = 'https://xkcd.com/1179/' > only one correct way to write dates </ a >.</ p >
2024-04-27 23:16:56 +02:00
</ body >
</ html >