llm-mixer / storages /datetimer.js
Hansimov's picture
:recycle: [Refactor] Separate datimer from chat_history_storage
970785f
raw history blame
No virus
422 Bytes
class Datetimer {
constructor() {}
now() {
return moment().format("YYYY-MM-DD HH:mm:ss");
}
now_with_ms() {
return moment().format("YYYY-MM-DD HH:mm:ss.SSS");
}
now_as_pathname() {
return moment().format("YYYY-MM-DD_HH-mm-ss");
}
now_with_ms_as_pathname() {
return moment().format("YYYY-MM-DD_HH-mm-ss_SSS");
}
}
export let datetimer = new Datetimer();