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