Open topic with navigation

TIBCO Rendezvous® 8.7.0

# TibrvDate()

Constructor

## Declaration

    TibrvDate()
    TibrvDate(java.util.Date date)
    TibrvDate(long milliseconds)
    TibrvDate(
        long  seconds,
        int   nanoseconds)

## Purpose

Create a Rendezvous date object.

## Remarks

If the time value specified is out of range, this constructor throws an `IllegalArgumentException`.

Parameter | Description
`date` | Copy the value of this Java date or Rendezvous date object into an independent copy object.
`milliseconds` | Create a date from this value (in milliseconds, centered on 12:00am, January 1, 1970).
`seconds` | Create a date from this value (in seconds, centered on 12:00am, January 1, 1970).
`nanoseconds` | Add this value (in nanoseconds) to the time specified by the `seconds` parameter. This argument must be non-negative.

## Method Forms

With no arguments, create a date object representing the current time.

With an argument of class `java.util.Date` (or a subclass), create a TibrvDate object representing the same date value.

With one argument, interpret that `long` as the date in milliseconds. For example, specify the time 1/2 second before midnight of December 31, 1969 as -500 milliseconds.

With two arguments, interpret them as seconds and (non-negative) nanoseconds. For example, specify the time 1/2 second before midnight of December 31, 1969 as -1 seconds plus 500,000,000 nanoseconds.

## See Also

TibrvDate

Representations

Did you find this helpful?

Yes No
Great!
Thanks for taking the time to give us some feedback.
Sorry about that

Why wasn't this helpful? (check all that apply)

Could not find what I was looking for
Instructions confusing or unclear
Instructions did not work

Want to tell us more?

Please select at least one option or provide details about the issue!!

Error occurred while submitting feedback.

Error2 occurred while submitting feedback.

TIBCO Rendezvous®

Copyright © 1997-2023. Cloud Software Group, Inc. All Rights Reserved.