Timestamp Class

Definition

A thin wrapper around <code>java.

[Android.Runtime.Register("java/sql/Timestamp", DoNotGenerateAcw=true)]
public class Timestamp : Java.Util.Date
[<Android.Runtime.Register("java/sql/Timestamp", DoNotGenerateAcw=true)>]
type Timestamp = class
    inherit Date
Inheritance
Timestamp
Attributes

Remarks

Java documentation for java.sql.Timestamp.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Timestamp(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
Obsolete.

Constructs a <code>Timestamp</code> object initialized with the given values.

Timestamp(Int64)

Constructs a <code>Timestamp</code> object using a milliseconds time value.

Timestamp(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Day
Obsolete.

Returns the day of the week represented by this date.

(Inherited from Date)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
Hours
Obsolete.

Returns the hour represented by this Date object. -or- Sets the hour of this Date object to the specified value.

(Inherited from Date)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Minutes
Obsolete.

Returns the number of minutes past the hour represented by this date, as interpreted in the local time zone. -or- Sets the minutes of this Date object to the specified value.

(Inherited from Date)
Month
Obsolete.

Returns a number representing the month that contains or begins with the instant in time represented by this Date object. -or- Sets the month of this date to the specified value.

(Inherited from Date)
Nanos

Gets this <code>Timestamp</code> object's <code>nanos</code> value. -or- Sets this <code>Timestamp</code> object's <code>nanos</code> field to the given value.

PeerReference (Inherited from Object)
Seconds
Obsolete.

Returns the number of seconds past the minute represented by this date. -or- Sets the seconds of this Date to the specified value.

(Inherited from Date)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Time

Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object. -or- Sets this <code>Date</code> object to represent a point in time that is <code>time</code> milliseconds after January 1, 1970 00:00:00 GMT.

(Inherited from Date)
TimezoneOffset
Obsolete.

Returns the offset, measured in minutes, for the local time zone relative to UTC that is appropriate for the time represented by this <code>Date</code> object.

(Inherited from Date)
Year
Obsolete.

Returns a value that is the result of subtracting 1900 from the year that contains or begins with the instant in time represented by this <code>Date</code> object, as interpreted in the local time zone. -or- Sets the year of this Date object to be the specified value plus 1900.

(Inherited from Date)

Methods

After(Date)

Tests if this date is after the specified date.

(Inherited from Date)
After(Timestamp)

Indicates whether this <code>Timestamp</code> object is later than the given <code>Timestamp</code> object.

Before(Date)

Tests if this date is before the specified date.

(Inherited from Date)
Before(Timestamp)

Indicates whether this <code>Timestamp</code> object is earlier than the given <code>Timestamp</code> object.

Clone()

Return a copy of this object.

(Inherited from Date)
CompareTo(Date)

Compares two Dates for ordering.

(Inherited from Date)
CompareTo(Timestamp)

Compares this <code>Timestamp</code> object to the given <code>Timestamp</code> object.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
Equals(Timestamp)

Tests to see if this <code>Timestamp</code> object is equal to the given <code>Timestamp</code> object.

GetDate()
Obsolete.

Returns the day of the month represented by this Date object.

(Inherited from Date)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetDate(Int32)
Obsolete.

Sets the day of the month of this Date object to the specified value.

(Inherited from Date)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToGMTString()
Obsolete.

Creates a string representation of this Date object of the form: <blockquote>

(Inherited from Date)
ToLocaleString()
Obsolete.

Creates a string representation of this Date object in an implementation-dependent form.

(Inherited from Date)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
ValueOf(String)

Converts a <code>String</code> object in JDBC timestamp escape format to a <code>Timestamp</code> value.

Wait()

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until either another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or a specified amount of time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IComparable.CompareTo(Object) (Inherited from Date)
IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to