2021-04-07 21:45:50 +00:00
|
|
|
class DateFormatter {
|
|
|
|
/**
|
|
|
|
* A pure virtual class which all the other date formatters will
|
|
|
|
* inherit from.
|
|
|
|
* The name will be used to declare the date format when selected
|
|
|
|
* and the date formatDate methid will return the time formated
|
|
|
|
* to the lines of text on the screen
|
|
|
|
*/
|
2022-07-30 23:17:24 +00:00
|
|
|
name(){ return "no name";}
|
|
|
|
shortName(){ return "no short name" }
|
|
|
|
formatDate(date){ return ["no","date","defined"]; }
|
|
|
|
rowProperties(row_no){ return {}; }
|
2022-07-30 21:47:21 +00:00
|
|
|
formatProperties(){ return {}; }
|
2021-04-07 21:45:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = DateFormatter;
|