The Timestamp type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
Clone()()()()
Clone this Timestamp
CompareTo(Object)
Compare 2 Timestamps
Equals(Object)
Return true if the given Timestamp is equivalent to this one.
(Overrides Object..::..Equals(Object).)
FromString(String)
Create a timestamp using the given string.
GetHashCode()()()()
Return the hash code for this Timestamp.
(Overrides Object..::..GetHashCode()()()().)
GetTimestampType()()()()
Return the type of this Timestamp
GetType()()()() (Inherited from Object.)
IsInterval()()()()
Return true if this Timestamp is an interval (i.e. of type Timestamp.INTERVAL.)
Msecs(Int64, Double)
Create a timestamp using the following type and # of milliseconds
Msecs(Int64, Int64)
Create a timestamp using the following type and # of milliseconds
Now()()()()
Return a Timestamp representing the current moment in time.
Secs(Int64, Double)
Create a timestamp using the following type and # of milliseconds
Secs(Int64, Int64)
Create a timestamp using the following type and # of seconds
ToDateTime()()()() Obsolete.
Create a System.DateTime from this Timestamp. Timestamp is assumed to be of type Timestamp.TIMESTAMP. The resulting DateTime object will be of kind DateTimeKind.Utc. Deprecated: Use ToUTCDateTimeOffset()()()() or ToLocalDateTime()()()().
ToLocalDateTime()()()()
Create a System.DateTime from this Timestamp. Timestamp is assumed to be of type Timestamp.TIMESTAMP. The resulting DateTime object will be of kind DateTimeKind.Local.
ToMsecs()()()()
Return the # of milliseconds since the epoch or in the interval.
ToSecs()()()()
Return the # of seconds since the epoch or in the interval.
ToSqlDateTime()()()()
Creates a System.Data.SqlDateTime from this Timestamp
ToString()()()()
Return a human readable string representation of this Timestamp, including the timezone
(Overrides Object..::..ToString()()()().)
ToString(Boolean)
Return a human readable string representation of this Timestamp
ToTimeSpan()()()()
Create a System.TimeSpan from this Timestamp. Timestamp is assumed to be of type Timestamp.INTERVAL.
ToUTCDateTimeOffset()()()()
Create a System.DateTimeOffset from this Timestamp. Timestamp is assumed to be of type Timestamp.TIMESTAMP. The resulting DateTimeOffset object represents the time in the UTC time zone (i.e. offset 0).

See Also