C# Class Patterns.Runtime.DefaultDateTimeInfo

Defines a default implementation of the IDateTimeInfo interface.
Inheritance: IDateTimeInfo
Show file Open project: patterns-group/code-patterns

Public Methods

Method Description
GetNow ( ) : System.DateTime

Gets the DateTime value representing "now".

GetUtcNow ( ) : System.DateTime

Gets the Coordinated Universal Time (UTC) DateTime value representing "now".

Method Details

GetNow() public method

Gets the DateTime value representing "now".
public GetNow ( ) : System.DateTime
return System.DateTime

GetUtcNow() public method

Gets the Coordinated Universal Time (UTC) DateTime value representing "now".
public GetUtcNow ( ) : System.DateTime
return System.DateTime