TibrvDate

Class

Declaration

class com.tibco.tibrv.TibrvDate
  extends java.util.Date

Purpose

Represent date and time.

This object relies on the method java.util.Date.toString() to convert a value to a string.

Remarks

This class has no destroy() method. Instead, the Java garbage collector reclaims storage automatically.

Constant

Description

TibrvDate.MAX_SECONDS

Maximum date (in seconds) that this class can represent.

The value is 549,755,813,887 (the maximum value of a 40-bit signed integer), which is approximately 17,432 years after the year 1970.

TibrvDate.MIN_SECONDS

Minimum date (in seconds) that this class can represent.

The value is -549,755,813,888 (the minimum value of a 40-bit signed integer), which is approximately 17,432 years before the year 1970.

Method

Description

TibrvDate()

Create a Rendezvous date object.

TibrvDate.getTimeNanoseconds()

Extract the modifying value (in nanoseconds) of a date object.

TibrvDate.getTimeSeconds()

Extract the partial value (in whole seconds) of a date object.

TibrvDate.setTime()

Change the value of a date object.

Inherited Methods

java.util.Date.after

java.util.Date.before

java.util.Date.clone

java.util.Date.compareTo

java.util.Date.getDate

java.util.Date.getDay

java.util.Date.getHours

java.util.Date.getMinutes

java.util.Date.getMonth

java.util.Date.getSeconds

java.util.Date.getTime

java.util.Date.getTimezoneOffset

java.util.Date.getYear

java.util.Date.hashCode

java.util.Date.parse

java.util.Date.setDate

java.util.Date.setHours

java.util.Date.setMinutes

java.util.Date.setMonth

java.util.Date.setSeconds

java.util.Date.setYear

java.util.Date.toGMTString

java.util.Date.toLocaleString

java.util.Date.toString

java.util.Date.UTC

java.lang.Object.equals

java.lang.Object.getClass

java.lang.Object.hashCode

java.lang.Object.notify

java.lang.Object.notifyAll

java.lang.Object.wait

Representations

In all three representations, zero denotes the epoch, 12:00 midnight, January 1st, 1970. Range limits in this table denote the extreme value on either side of that center. Bold type indicates the primary unit of measurement for each representation.

Date and Time Representations

Representation

Details

java.util.Date

Milliseconds as a 64-bit signed integer.

range in years

292,471,208

range in seconds

9,223,372,036,854,775

range in milliseconds

9,223,372,036,854,775,807

TibrvDate

Seconds as a 64-bit signed integer, plus nanoseconds as a 32-bit unsigned integer.

However, values are restricted to the range and granularity supported by Rendezvous wire format. Forcing larger or finer values into this representation causes an exception.

range in years

292,471,208,677

range in seconds

9,223,372,036,854,775,807

restricted range in seconds

549,755,813,887

restricted range in milliseconds

549,755,813,887,000

Rendezvous wire format

Seconds as a 40-bit signed integer, plus microseconds as a 24-bit unsigned integer.

range in years

17,432

range in seconds

549,755,813,887

range in milliseconds

549,755,813,887,000

See Also

TibrvMsg.get()