ProzillaOS/src/features/applications/terminal/commands/uptime.js
2023-12-19 11:42:51 +01:00

12 lines
No EOL
357 B
JavaScript

import { START_DATE } from "../../../../index.js";
import { formatRelativeTime } from "../../../utils/date.js";
import Command from "../command.js";
export const uptime = new Command("uptime")
.setManual({
purpose: "Displays the current uptime of the system"
})
.setExecute(() => {
return `Uptime: ${formatRelativeTime(START_DATE, 2, false)}`;
});