BangleApps/apps/slidingtext/slidingtext.dtfmt.js

16 lines
548 B
JavaScript
Raw Normal View History

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
*/
name(){ return "no name";}
shortName(){ return "no short name" }
formatDate(date){ return ["no","date","defined"]; }
rowProperties(row_no){ return {}; }
formatProperties(){ return {}; }
}
module.exports = DateFormatter;