Share via


TypeUsage.CreateDateTimeOffsetTypeUsage Method

Definition

Creates a System.Data.Metadata.Edm.DateTimeOffsetTypeUsage object of the type that the parameters describe.

public static System.Data.Entity.Core.Metadata.Edm.TypeUsage CreateDateTimeOffsetTypeUsage (System.Data.Entity.Core.Metadata.Edm.PrimitiveType primitiveType, Nullable<byte> precision);
static member CreateDateTimeOffsetTypeUsage : System.Data.Entity.Core.Metadata.Edm.PrimitiveType * Nullable<byte> -> System.Data.Entity.Core.Metadata.Edm.TypeUsage

Parameters

primitiveType
PrimitiveType

The simple type that defines the units of measurement of the offset.

precision
Nullable<Byte>

The degree of granularity of the System.DateTimeOffset in fractions of a second, based on the number of decimal places supported. For example a precision of 3 means the granularity supported is milliseconds.

Returns

A System.Data.Metadata.Edm.DateTimeOffsetTypeUsage object.

Applies to