Lines 34-41
Link Here
|
34 |
}; |
34 |
}; |
35 |
|
35 |
|
36 |
/** |
36 |
/** |
37 |
* A JS equivilent of the KohaDates TT Plugin. Passed an rfc3339 formatted date string, |
37 |
* A JS equivalent of the KohaDates TT Plugin. Passed an rfc3339 formatted date string, |
38 |
* or JS Date, the function will return a date string formatted as per the koha instance config. |
38 |
* or JS Date, the function will return a date string formatted as per the Koha instance config. |
39 |
* @param {String|Date} value rfc3339 formatted date string or a JS Date object. |
39 |
* @param {String|Date} value rfc3339 formatted date string or a JS Date object. |
40 |
* @param {Object} [options] Optional set of switches for changing date handling |
40 |
* @param {Object} [options] Optional set of switches for changing date handling |
41 |
* @property {String} [options.tz] String representing the timezone of the passed date |
41 |
* @property {String} [options.tz] String representing the timezone of the passed date |
Lines 44-50
Link Here
|
44 |
* @property {Boolean} [options.withtime] Enable/Disable appearance of time in returned string |
44 |
* @property {Boolean} [options.withtime] Enable/Disable appearance of time in returned string |
45 |
* @property {String} [options.timeformat] |
45 |
* @property {String} [options.timeformat] |
46 |
* @property {Boolean} [options.as_due_date] Enable/Disable due date output format |
46 |
* @property {Boolean} [options.as_due_date] Enable/Disable due date output format |
47 |
* @returns {String} A date string formatted as per the koha instance configuration. |
47 |
* @returns {String} A date string formatted as per the Koha instance configuration. |
48 |
*/ |
48 |
*/ |
49 |
window.$date = function(value, options) { |
49 |
window.$date = function(value, options) { |
50 |
if(!value) return ''; |
50 |
if(!value) return ''; |
51 |
- |
|
|