diff options
| author | Sam Ruby <rubys@php.net> | 2000-02-28 17:02:28 +0000 |
|---|---|---|
| committer | Sam Ruby <rubys@php.net> | 2000-02-28 17:02:28 +0000 |
| commit | 6189e219ff6f04f9f00b674b4d90b4c51b14bc78 (patch) | |
| tree | 2f51bc0ace04e488ae81876552764af6cadac786 /sapi/servlet/date.php | |
| parent | bafbbea0516641ac5df5e8d285ff79133f55b685 (diff) | |
| download | php-git-6189e219ff6f04f9f00b674b4d90b4c51b14bc78.tar.gz | |
Improved handing of instances of private classes. Added servlet examples.
Diffstat (limited to 'sapi/servlet/date.php')
| -rw-r--r-- | sapi/servlet/date.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sapi/servlet/date.php b/sapi/servlet/date.php new file mode 100644 index 0000000000..1146d31fab --- /dev/null +++ b/sapi/servlet/date.php @@ -0,0 +1,28 @@ +<html> +<!-- + Copyright (c) 1999 The Apache Software Foundation. All rights + reserved. +--> + +<body bgcolor="white"> +<?php $clock=new Java("dates.JspCalendar"); ?> + +<font size=4> +<ul> +<li> Day of month: is <?php echo $clock->dayOfMonth ?> +<li> Year: is <?php echo $clock->year ?> +<li> Month: is <?php echo $clock->month ?> +<li> Time: is <?php echo $clock->time ?> +<li> Date: is <?php echo $clock->date ?> +<li> Day: is <?php echo $clock->day ?> +<li> Day Of Year: is <?php echo $clock->dayOfYear ?> +<li> Week Of Year: is <?php echo $clock->weekOfYear ?> +<li> era: is <?php echo $clock->era ?> +<li> DST Offset: is <?php echo $clock->dSTOffset ?> +<li> Zone Offset: is <?php echo $clock->zoneOffset ?> +</ul> +</font> + +</body> +</html> + |
