Overview
Members-Overview
|
:Number |
|
:Number |
|
:Number |
|
:Number |
|
:Number |
|
:Number |
Methods-Overview
- copy(timeDate) → {timapi.TimeDate}
- fromDate(date) → {timapi.TimeDate}
- fromNow() → {timapi.TimeDate}
- toDate() → {Date}
- toString() → {String}
- toStringReceiptDate() → {String}
- toStringReceiptTime() → {String}
- toStringRegular() → {String}
Constructor
new TimeDate()
Create TimeDate with zero-date
Member-List
Methods
(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
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