Table of Contents

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

DateTime

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

DateTime

TimeZone

Not yet implemented. The TimeZone for the business's primary location (the store).

public abstract TimeZone TimeZone { get; }

Property Value

TimeZone

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

utcDateToConvert DateTime
localTimeZone TimeZone

Returns

DateTime

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

userId int

Returns

DateTime