Skip to content

Instantly share code, notes, and snippets.

@LocalCommit
Created April 8, 2015 12:49
Show Gist options
  • Save LocalCommit/3c50b072741d04e3b1f6 to your computer and use it in GitHub Desktop.
Save LocalCommit/3c50b072741d04e3b1f6 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Today&rsquo;s Date</title>
</head>
<body>
<p>Today&rsquo;s date (according to this web server) is
<?php
echo date('l, F jS Y.');
?>
</p>
<p>Сегодня дата (согласно серверу):
<?php
echo strftime('%d, %m, %Y');
?>
</p>
<p>Сегодня дата (согласно серверу):
<?php
setlocale(LC_ALL, "russian");
echo strftime('%d, %B, %Y');
?>
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment