Class: PaywallTime

PaywallTime(timeStamp)

new PaywallTime(timeStamp)

Helper class to calculate and present remaining validity or time until valid of an invoice or an settlement.
Parameters:
Name Type Description
timeStamp string the timestamp to parse.
Source:

Methods

(static) getTimeStamp() → {Date}

Source:
Returns:
returns the related timestamp as a Date object.
Type
Date

(static) remaining()

Help method to get the difference between timestamp and current time. If current time is after timestamp is 0 returned, never a negative number. Used to indicate the remaining time of a invoice or settlement.
Source:
Returns:
a PaywallTimeUnit with the difference between given timestamp and current time.