removed Python and the Python Script, added the apprise-api docker container to the Docker-compose to send notificaiton
This commit is contained in:
12
src/util.ts
12
src/util.ts
@@ -26,4 +26,16 @@ export function pad_l2 ( _thing: string | number ): string {
|
||||
_thing = JSON.stringify(_thing);
|
||||
};
|
||||
return _thing.padStart(2, "0");
|
||||
}
|
||||
|
||||
export function getTsNow() {
|
||||
const now = new Date();
|
||||
const rtn = {
|
||||
year: now.getFullYear(),
|
||||
month: now.getMonth() + 1,
|
||||
day: now.getDate(),
|
||||
minute: now.getMinutes(),
|
||||
seconds: now.getSeconds()
|
||||
}
|
||||
return rtn;
|
||||
}
|
||||
Reference in New Issue
Block a user