Benutzer-Werkzeuge

Webseiten-Werkzeuge


lcd4linux:plugin_uptime

Inhaltsverzeichnis

uptime plugin

This plugin returns the current system uptime either in seconds or in a user-defined format.


Functions:

uptime()returns the uptime in seconds
uptime(format)returns the uptime in a specific format

The format can be specified similar to printf(), but only these tokens will be replaced:

%stotal number of seconds
%Sseconds from 00 to 59
%mtotal number of minutes
%Mminutes from 00 to 59
%htotal number of hours
%Hhours from 00 to 23
%dtotal number of days

Example

Widget Uptime {
    class 'Text'
    expression uptime('%h:%M')
    prefix 'Up '
    width 9
    align 'R'
    update 1000
}

lcd4linux/plugin_uptime.txt · Zuletzt geändert: 2022/02/15 20:09 von 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki