Overview
Members-Overview
|
:Number |
|
:Number |
|
:Number |
|
:Number |
|
:Number |
|
:Number |
Methods-Overview
- toDate() → {Date}
- toString() → {String}
- toStringReceiptDate() → {String}
- toStringReceiptTime() → {String}
- toStringRegular() → {String}
- copy(timeDate) → {timapi.TimeDate}
- fromDate(date) → {timapi.TimeDate}
- fromNow() → {timapi.TimeDate}
Constructor
new TimeDate()
Create TimeDate with zero-date
Member-List
Methods
toDate() → {Date}
Returns a JavaScript Date object.
Returns:
Date object
Type: Date
toString() → {String}
Get string representation for debugging purpose.
Returns:
String representation
Type: String
toStringReceiptDate() → {String}
Format as "ddMMyyyy" string for receipts.
Returns:
Date as string.
Type: String
toStringReceiptTime() → {String}
Format as "HHmmss" string for receipts.
Returns:
Time as string.
Type: String
toStringRegular() → {String}
Format as "ddMMyyyy HHmmss" string.
Returns:
Datetime as string suitable for receipts..
Type: String
(static) copy(timeDate) → {timapi.TimeDate}
Creates a copy of an timapi.TimeDate object.
Parameters:
Name | Type | Description |
---|---|---|
timeDate |
timapi.TimeDate | Original |
Returns:
Copy of original
Type: timapi.TimeDate
(static) fromDate(date) → {timapi.TimeDate}
Creates instance of timapi.TimeDate from JavaScript Date
Parameters:
Name | Type | Description |
---|---|---|
date |
Date | Javascript Date object |
Returns:
Created instance of timapi.TimeDate
Type: timapi.TimeDate
(static) fromNow() → {timapi.TimeDate}
Creates instance of timapi.TimeDate with timestamp of the current moment
Returns:
Created instance of timapi.TimeDate
Type: timapi.TimeDate