Home > Contents > Index >
date:clocklist
Converts an epoch format long integer representing milliseconds since Jan 1, 1970, 0:00 GMT, into a single-row list with columns representing various date/time fields and formats.
Syntax
<date
:clocklist listvarname
="listvarname" [clock="longinteger
"] [timezone="timezone
"]/>
Note
If you take the result of
date:clocklist
and use it as an input value todate:convert
, the epoch date returned is different from the originally converted date becausedate:clocklis
t is 1-based for month and day values, whiledate:convert
is 0-based for month and day values.Parameters
listvarname
(required)- Input parameter (see as output, below). Name of a list to create with broken out date formats.
clock
(optional)- Input parameter. Long integer value of milliseconds since Jan 1, 1970 0:00 GMT. The default is now, or the current clock value.
timezone
(optional)- Input parameter. Time zone name. The default is system default.
Note
Only North American time zones are recognized. For time zones elsewhere in the world, use a plus or minus offset to GMT; for example,
timezone="-03:00"
ortimezone="+03:00".
listvarname
Output parameter. A list is created with the following columns:
fulldate
- for example, "Saturday, April 6, 2001"fulltime
- for example, "1:05:00 o'clock AM EST"longdate
- for example, "April 6, 2001"longtime
- for example, "1:05:00 AM EST"year
- four-digit yearmonth
- integer month, January=1, December=11dayofmonth
- integer day of month, 1-31dayofweek
- integer day of week 1-7, Sunday=1hour
- integer hour 0-11minute
- integer minute 0-59second
- integer second 0-59millisecond
- integer millisecond 0-999ampm
- integer, am=0, pm=1clock
- integer, milliseconds since Jan 1, 1970 0:00 GMT
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.