C# Class NServiceBus.DateTimeExtensions

Common date time extensions.
Show file Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
ToUtcDateTime ( string wireFormattedString ) : System.DateTime

Converts a wire formatted string from ToWireFormattedString to a UTC DateTime.

ToWireFormattedString ( System.DateTime dateTime ) : string

Converts the DateTime to a string suitable for transport over the wire.

Private Methods

Method Description
AddMicroseconds ( this self, int microseconds ) : System.DateTime
Microseconds ( this self ) : int

Method Details

ToUtcDateTime() public static method

Converts a wire formatted string from ToWireFormattedString to a UTC DateTime.
public static ToUtcDateTime ( string wireFormattedString ) : System.DateTime
wireFormattedString string
return System.DateTime

ToWireFormattedString() public static method

Converts the DateTime to a string suitable for transport over the wire.
public static ToWireFormattedString ( System.DateTime dateTime ) : string
dateTime System.DateTime
return string