• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class SystemDateTime

The SystemDateTime provides static method to obtain System's Time.

Inheritance
System.Object
SystemDateTime
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 Source

GetCurrentTime()

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.

| Improve this Doc View Source

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.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS