public static SqlExpression DateTimeOffsetCtor( [Type(typeof(DateTime))] SqlExpression dateTime, [Type(typeof(TimeSpan))] SqlExpression offset) { SqlExpression offsetInMinutes = OffsetInMinutes(offset); return(SqlDml.DateTimeOffsetConstruct(dateTime, offsetInMinutes)); }
private static SqlExpression DateTimeOffsetConstruct( SqlExpression year, SqlExpression month, SqlExpression day, SqlExpression hour, SqlExpression minute, SqlExpression second, SqlExpression millisecond, SqlExpression offsetInMinutes) { return(SqlDml.DateTimeOffsetConstruct( DateTimeCompilers.DateTimeCtor(year, month, day, hour, minute, second, millisecond), offsetInMinutes)); }
public virtual void DateTimeOffsetConstructTest() { CheckEquality(SqlDml.DateTimeOffsetConstruct(DefaultDateTimeOffset.DateTime, DefaultTimeSpan.TotalMinutes), TryTranformToLocalZone(DefaultDateTimeOffset)); }