Oracle® Beehive RESTful Web Services API Reference Release 2 (2.0.1.7) E16658-04 |
If a time is floating, it means that it represents the same time no matter what timezone (e.g., lunch is always at noon regardless of timezone). If no timezone is specified, then it is assumed to be UTC.
Since this class acts to hold time, it is an immutable object.
The following table explains how the time is interpreted based on the dateOnly and floatingTime settings (what is significant):
dateOnly/floatingTime | true |
false |
---|---|---|
true |
Ignored | Date in a timezone |
false |
Date and floating time | Date and time in a timezone |
Name | Type | Required | Description |
---|---|---|---|
dateOnly |
Return true if the DateTime represent a date (not a specific time in a day). | ||
floatingTime |
Return true if the DateTime is not bound to a specific timezone. | ||
scheduledTimeZone |
Return the TimeZone associated with the datetime. | ||
timestamp |
Return the timestamp attribute. | ||
timestampTime |
Return the timestamp attribute in the milliseconds time value. Similar to getTimestamp().getTime() but more efficient. |
<xs:complexType name="dateTime"> <xs:sequence> <xs:element name="dateOnly" type="xs:boolean"/> <xs:element name="floatingTime" type="xs:boolean"/> <xs:element minOccurs="0" name="scheduledTimeZone" type="tns:timeZone"/> <xs:element minOccurs="0" name="timestamp" type="xs:dateTime"/> <xs:element name="timestampTime" type="xs:long"/> </xs:sequence> </xs:complexType>
Copyright © 2008, 2012, Oracle and/or its affiliates. All rights reserved.
Legal Notices