Class for representing moments in time and intervals at millisecond granularity.
Namespace: StreamBase.SBAssembly: StreamBase.SB.Client (in StreamBase.SB.Client.dll) Version: 10.6.0.0
Syntax
C# | Visual Basic | Visual C++ |
[SerializableAttribute] public class Timestamp : IComparable, ICloneable, ISerializable, IDisposable
<SerializableAttribute> _ Public Class Timestamp _ Implements IComparable, ICloneable, ISerializable, IDisposable
[SerializableAttribute] public ref class Timestamp : IComparable, ICloneable, ISerializable, IDisposable
Members
All Members | Fields | Properties | Methods |
Public Protected | Instance Static | Declared Inherited | XNA Framework Only .NET Compact Framework Only |
Member | Description | |
---|---|---|
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()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
INTERVAL |
Timestamps can be timestamps or intervals. This value indicates that it is an INTERVAL.
| |
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
| |
TIMESTAMP |
Timestamps can be timestamps or intervals. This value indicates that it is a TIMESTAMP.
| |
TimestampType |
Return the type of this Timestamp
| |
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).
|
Inheritance Hierarchy
System..::..Object
StreamBase.SB..::..Timestamp
StreamBase.SB..::..Timestamp