Share via


Timestamp Constructors

Definition

Overloads

Timestamp(DateTime)

Constructor for Timestamp class.

Timestamp(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructor for Timestamp class, the defaut timezone is Coordinated Universal Time (UTC).

Timestamp(DateTime)

Constructor for Timestamp class.

public Timestamp (DateTime dateTime);
new Microsoft.Spark.Sql.Types.Timestamp : DateTime -> Microsoft.Spark.Sql.Types.Timestamp
Public Sub New (dateTime As DateTime)

Parameters

dateTime
DateTime

DateTime object

Applies to

Timestamp(Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Constructor for Timestamp class, the defaut timezone is Coordinated Universal Time (UTC).

public Timestamp (int year, int month, int day, int hour, int minute, int second, int microsecond);
new Microsoft.Spark.Sql.Types.Timestamp : int * int * int * int * int * int * int -> Microsoft.Spark.Sql.Types.Timestamp
Public Sub New (year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, microsecond As Integer)

Parameters

year
Int32

The year (1 through 9999)

month
Int32

The month (1 through 12)

day
Int32

The day (1 through the number of days in month)

hour
Int32

The hour (0 through 23)

minute
Int32

The minute (0 through 59)

second
Int32

The second (0 through 59)

microsecond
Int32

The microsecond (0 through 999999)

Applies to