SqlServerDbFunctionsExtensions.DateTimeOffsetFromParts メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した年、月、日、時、分、秒、分数、hourOffset、minuteOffset、有効桁数に DateTimeOffset 構造体の新しいインスタンスを初期化します。
SQL Serverに対応します。
DATETIMEOFFSETFROMPARTS(year, month, day, hour, minute, seconds, fractions, hour_offset,
minute_offset, precision)
.
public static DateTimeOffset DateTimeOffsetFromParts(this Microsoft.EntityFrameworkCore.DbFunctions _, int year, int month, int day, int hour, int minute, int second, int fractions, int hourOffset, int minuteOffset, int precision);
static member DateTimeOffsetFromParts : Microsoft.EntityFrameworkCore.DbFunctions * int * int * int * int * int * int * int * int * int * int -> DateTimeOffset
<Extension()>
Public Function DateTimeOffsetFromParts (_ As DbFunctions, year As Integer, month As Integer, day As Integer, hour As Integer, minute As Integer, second As Integer, fractions As Integer, hourOffset As Integer, minuteOffset As Integer, precision As Integer) As DateTimeOffset
パラメーター
DbFunctions のインスタンスです。
- year
- Int32
年 (1753 ~ 9999)。
- month
- Int32
月 (1 ~ 12)。
- day
- Int32
日 (1 ~ 月の日数)。
- hour
- Int32
時間 (0 から 23)。
- minute
- Int32
分 (0 から 59)。
- second
- Int32
秒 (0 から 59)。
- fractions
- Int32
秒の小数部 (0 ~ 9999999)。
- hourOffset
- Int32
タイム ゾーン オフセットの時間部分 (-14 ~ +14)。
- minuteOffset
- Int32
タイム ゾーン オフセットの分部分 (0 または 30)。
- precision
- Int32
datetimeoffset 値の有効桁数 (0 から 7)。
戻り値
指定した年、月、日、時、分、秒、分数、hourOffset、minuteOffset、有効桁数に対する DateTimeOffset 構造体の新しいインスタンス。
注釈
詳細と例については、「データベース関数」および「EF Core を使用したSQL ServerおよびAzure SQLデータベースへのアクセス」を参照してください。