Class SystemDateTime
The SystemDateTime provides static method to obtain System's Time.
Inheritance
Namespace: DotNetNuke.Services.SystemDateTime
Assembly: DotNetNuke.dll
Syntax
public class SystemDateTime : object
Remarks
DateTime information is collected from Database. The methods are created to find one unified timestamp from database as opposed to depending on web server's timestamp. This method becomes more relevant in a web farm configuration.
Methods
| Improve this Doc View SourceGetCurrentTime()
GetCurrentTime get current time from database.
Declaration
public static DateTime GetCurrentTime()
Returns
| Type | Description |
|---|---|
| DateTime | DateTime. |
Remarks
DateTime information is collected from Database. The methods are created to find one unified timestamp from database as opposed to depending on web server's timestamp. This method becomes more relevant in a web farm configuration.
GetCurrentTimeUtc()
The SystemDateTime provides static method to obtain System's Time.
Declaration
public static DateTime GetCurrentTimeUtc()
Returns
| Type | Description |
|---|---|
| DateTime |
Remarks
DateTime information is collected from Database. The methods are created to find one unified timestamp from database as opposed to depending on web server's timestamp. This method becomes more relevant in a web farm configuration.