Class CPDateBaseClass
- Namespace
- Contensive.BaseClasses
- Assembly
- CPBase.dll
provate consistent JSON methods in a single updateable layer
public abstract class CPDateBaseClass
- Inheritance
-
CPDateBaseClass
- Inherited Members
Properties
Now
Not yet implemented. The local date and time at the business's location (the store). If the business has multiple locations, this is the selected location or the primary. This is the server time in UTC plus the primary location time-zone.
public abstract DateTime Now { get; }
Property Value
NowUtc
Not yet implemented. The current date and time in UTC (the server time). DateTime should be saved to the Db in UTC
public abstract DateTime NowUtc { get; }
Property Value
TimeZone
Not yet implemented. The TimeZone for the business's primary location (the store).
public abstract TimeZone TimeZone { get; }
Property Value
Methods
ConvertToLocal(DateTime, TimeZone)
Not yet implemented. The current date and time in UTC (the server time)
public abstract DateTime ConvertToLocal(DateTime utcDateToConvert, TimeZone localTimeZone)
Parameters
Returns
UserNow(int)
Not yet implemented. The current date and time for this user. This is the server time in UTC plus the user's time-zone
public abstract DateTime UserNow(int userId)
Parameters
userIdint