Udostępnij przez


DataType.DateTimeOffset Method

Returns values for year, month, day, valid time of day between 00:00:00 and 23:59:59:9999999 and offset, in hours, from UTC. It has a length of at least 25 positions.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
Public Shared Function DateTimeOffset ( _
    scale As Integer _
) As DataType
public static DataType DateTimeOffset (
    int scale
)
public:
static DataType^ DateTimeOffset (
    int scale
)
public static DataType DateTimeOffset (
    int scale
)
public static function DateTimeOffset (
    scale : int
) : DataType

Parameters

  • scale
    Int32

Return Value

A DataType object value that specifies a DateTimeOffset definition in the data type.

Remarks

The DateTimeOffset object constructor is initialized with the scale value that determines the precision of the DateTimeOffset object.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.