Changes to system variables
parent
2826341e4e
commit
f6e33cfff5
@ -0,0 +1,17 @@
|
|||||||
|
let format = require("date-format");
|
||||||
|
|
||||||
|
const dateTimeFormat = "dd.MM.yyyy hh:mm:ss";
|
||||||
|
const dateFormat = "dd.MM.yyyy";
|
||||||
|
const timeFormat = "hh:mm:ss";
|
||||||
|
|
||||||
|
export const globalVariables: any = {
|
||||||
|
"\\$now"() {
|
||||||
|
return format(dateTimeFormat, new Date());
|
||||||
|
},
|
||||||
|
"\\$date"() {
|
||||||
|
return format(dateFormat, new Date());
|
||||||
|
},
|
||||||
|
"\\$time"() {
|
||||||
|
return format(timeFormat, new Date());
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue