Fluent Assertions Documentation
FluentAssertions.Extensions Namespace / FluentDateTimeExtensions Class / WithOffset Method
In This Topic
    WithOffset Method
    In This Topic
    Returns new System.DateTimeOffset that uses self as its datetime and offset as its offset.
    Syntax
    [Extension()]
    public static DateTimeOffset WithOffset( 
       DateTime self,
       TimeSpan offset
    )

    Parameters

    self
    offset
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also