Timestamp Class

Note: This API is now obsolete.

Represents a point of time since January 01, 1970.

Inheritance Hierarchy

System.Object
  TcHmiSrv.Timestamp
Namespace:  TcHmiSrv
Assembly:  TcHmiSrvExtNet (in TcHmiSrvExtNet.dll) Version: 3.0.0.0

Syntax

C#

[ObsoleteAttribute("Type 'TcHmiSrv.Timestamp' is obsolete. Use type 'System.DateTime' instead.")]
public class Timestamp : IEquatable<Timestamp>, 
    IDisposable

The Timestamp type exposes the following members.

Constructors

 

Name

Description

Timestamp Class 1:

Timestamp.

Initializes a new instance of the Timestamp class.

Timestamp Class 2:

Timestamp(Int64)

Initializes a new instance of the Timestamp class with the specified number of nanoseconds.

Timestamp Class 3:

Timestamp(Timestamp)

Initializes a new instance of the Timestamp class based on another Timestamp.

Properties

 

Name

Description

Timestamp Class 4:

Milliseconds

Gets the number of milliseconds from the current Timestamp.

Timestamp Class 5:

Nanoseconds

Gets the number of nanoseconds from the current Timestamp.

Timestamp Class 6:

Timestamp Class 7:

Now

Obsolete.

Gets a Timestamp that represents the current point of time.

Timestamp Class 8:

Seconds

Gets the number of seconds from the current Timestamp.

Methods

 

Name

Description

Timestamp Class 9:

Dispose.

Releases all resources used by the Timestamp

Timestamp Class 10:

Dispose(Boolean)

Releases the unmanaged resources used by the Timestamp and optionally releases the managed resources

Timestamp Class 11:

Equals(Object)

Determines whether the specified object is equal to the current object. (Inherited from Object.)

Timestamp Class 12:

Equals(Timestamp)

Indicates whether the current Timestamp is equal to another Timestamp.

Timestamp Class 13:

Finalize

(Overrides Object.Finalize..)

Timestamp Class 14:

Timestamp Class 15:

from_file_time

Creates a Timestamp from a Windows file time.

Timestamp Class 16:

Timestamp Class 17:

from_milliseconds

Creates a Timestamp from a number of milliseconds since 1 January 1970.

Timestamp Class 18:

Timestamp Class 19:

from_unix_time

Creates a Timestamp from an unix timestamp.

Timestamp Class 20:

GetHashCode

Serves as the default hash function. (Inherited from Object.)

Timestamp Class 21:

GetType

Gets the Type of the current instance. (Inherited from Object.)

Timestamp Class 22:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

Timestamp Class 23:

ToString

Returns a string that represents the current object. (Inherited from Object.)

Operators

 

Name

Description

Timestamp Class 24:

Timestamp Class 25:

Equality

Determines whether two instances of the Timestamp class are equal.

Timestamp Class 26:

Timestamp Class 27:

.(DateTime to Timestamp)

Converts an instance of the DateTime class to the appropriate instance of the Timestamp class.

Timestamp Class 28:

Timestamp Class 29:

.(Timestamp to DateTime)

Converts an instance of the Timestamp class to the appropriate instance of the DateTime class.

Timestamp Class 30:

Timestamp Class 31:

Inequality

Determines whether two instances of the Timestamp class are not equal.

Reference

TcHmiSrv Namespace