mirror of
https://github.com/php/php-src.git
synced 2024-11-30 05:13:56 +08:00
d17a12319f
# # My lawyer made me do this: # Users of PHP are hereby granted a non-exclusive, irrevocable, world-wide, royalty-free, non-transferable license to use, execute, prepare derivative works of, and distribute (internally and externally, and including derivative works) the code accompanying this license as part of, and integrated into PHP. WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTY OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AND ANY WARRANTY OF NON-INFRINGEMENT. THE ENTIRE RISK ARISING OUT OF THE USE OR PERFORMANCE OF THIS CODE REMAINS WITH USERS OF PHP. The owner of this code represents and warrants that it is legally entitled to grant the above license.
16 lines
543 B
PHP
16 lines
543 B
PHP
<?
|
|
|
|
$system = new Java("java.lang.System");
|
|
print "Java version=".$system->getProperty("java.version")." <br>\n";
|
|
print "Java vendor=".$system->getProperty("java.vendor")." <p>\n\n";
|
|
print "OS=".$system->getProperty("os.name")." ".
|
|
$system->getProperty("os.version")." on ".
|
|
$system->getProperty("os.arch")." <br>\n";
|
|
|
|
$formatter = new Java("java.text.SimpleDateFormat",
|
|
"EEEE, MMMM dd, yyyy 'at' h:mm:ss a zzzz");
|
|
|
|
print $formatter->format(new Java("java.util.Date"))."\n";
|
|
|
|
?>
|