mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 16:46:10 +08:00
parent
a7b27924f1
commit
58634e2386
|
@ -813,11 +813,11 @@ sap.ui.define("z2ui5/UITableExt", ["sap/ui/core/Control"], (Control) => {
|
|||
}
|
||||
);
|
||||
|
||||
sap.ui.define("z2ui5/Util", ["sap/gantt/misc/Format/abapTimestampToDate"], (abapTimestampToDate) => {
|
||||
sap.ui.define("z2ui5/Util", [], () => {
|
||||
"use strict";
|
||||
return {
|
||||
DateCreateObject: (s) => new Date(s),
|
||||
DateAbapTimestampToDate: (sTimestamp) => new abapTimestampToDate(sTimestamp),
|
||||
DateAbapTimestampToDate: (sTimestamp) => new sap.gantt.misc.Format.abapTimestampToDate(sTimestamp),
|
||||
DateAbapDateToDateObject: (d) => new Date(d.slice(0, 4), parseInt(d.slice(4, 6)) - 1, d.slice(6, 8)),
|
||||
DateAbapDateTimeToDateObject: (d, t = '000000') => new Date(d.slice(0, 4), parseInt(d.slice(4, 6)) - 1, d.slice(6, 8), t.slice(0, 2), t.slice(2, 4), t.slice(4, 6)),
|
||||
};
|
||||
|
|
|
@ -835,11 +835,11 @@ CLASS z2ui5_cl_app_app_js IMPLEMENTATION.
|
|||
`}` && |\n| &&
|
||||
`);` && |\n| &&
|
||||
`` && |\n| &&
|
||||
`sap.ui.define("z2ui5/Util", ["sap/gantt/misc/Format/abapTimestampToDate"], (abapTimestampToDate) => {` && |\n| &&
|
||||
`sap.ui.define("z2ui5/Util", [], () => {` && |\n| &&
|
||||
` "use strict";` && |\n| &&
|
||||
` return {` && |\n| &&
|
||||
` DateCreateObject: (s) => new Date(s),` && |\n| &&
|
||||
` DateAbapTimestampToDate: (sTimestamp) => new abapTimestampToDate(sTimestamp),` && |\n| &&
|
||||
` DateAbapTimestampToDate: (sTimestamp) => new sap.gantt.misc.Format.abapTimestampToDate(sTimestamp),` && |\n| &&
|
||||
` DateAbapDateToDateObject: (d) => new Date(d.slice(0, 4), parseInt(d.slice(4, 6)) - 1, d.slice(6, 8)),` && |\n| &&
|
||||
` DateAbapDateTimeToDateObject: (d, t = '000000') => new Date(d.slice(0, 4), parseInt(d.slice(4, 6)) - 1, d.slice(6, 8), t.slice(0, 2), t.slice(2, 4), t.slice(4, 6)),` && |\n| &&
|
||||
` };` && |\n| &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user