oxjs/source/Ox.UI/js/Calendar/Ox.CalendarDate.js

36 lines
694 B
JavaScript
Raw Normal View History

2011-11-05 16:46:53 +00:00
'use strict';
2011-05-16 08:24:46 +00:00
/*@
Ox.CalendarDate <f> CalendarDate
() -> <o> CalendarData object
(options) -> <o> CalendarData object
options <o> Options object
start <d> start date
stop <d> stop date
@*/
2011-05-25 09:22:16 +00:00
// fixme: unused
2011-04-22 22:03:10 +00:00
Ox.CalendarDate = function(options) {
var self = {},
that = this;
['start', 'stop'].forEach(function(v) {
var date = self.options[v];
if (Ox.isString(date)) {
date = new Date(self.options[v]);
}
});
self.duration = self.options.stop - self.options.start;
that.format = function() {
};
that.formatDuration = function() {
};
return that;
};