QML
The KDE plasmoids are using qml scripts, http://en.wikipedia.org/wiki/QML .
The plasmoid scripts are at: /usr/share/plasma/plasmoids/... ie the digital clock scripts are at: /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/... You could edit those but any update will overwrite your changes.
The KDE TechBase has tutorial - Plasma5 QML2 GettingStarted: https://techbase.kde.org/Development/Tutorials/Plasma5/QML2/GettingStarted .
The Date QML Type: http://doc.qt.io/qt-5/qml-qtqml-date.html
-> Date:
-> Time:
My panel clock
Writing a quick and dirty clock.
Making:
Opening a terminal window to the tmp directory and running command:
plasmapkg2 -i mypanelclock
The command:
:~$ plasmapkg2 --help
Usage: plasmapkg2 [options]
Plasma Package Manager
Options:
-v, --version Displays version information.
-h, --help Displays this help.
--hash <path> Generate a SHA1 hash for the package at <path>
-g, --global For install or remove, operates on packages
installed for all users.
-t, --type <type> The type of package, e.g. theme, wallpaper,
plasmoid, dataengine, runner, layout-template, etc.
-i, --install <path> Install the package at <path>
-s, --show <name> Show information of package <name>
-u, --upgrade <path> Upgrade the package at <path>
-l, --list List installed packages
--list-types List all known package types that can be installed
-r, --remove <name> Remove the package named <name>
-p, --packageroot <path> Absolute path to the package root. If not supplied,
then the standard data directories for this KDE
session will be searched instead.
Now there are available:
Adding the clock to the panel:
More of the KDE clocks: https://www.kubuntuforums.net/showthread.php?61798-Clocks
More of the qml & plasma 5: https://www.kubuntuforums.net/showthread.php?67726-Quick-KDE-plasma-qml-widgets
Best Answer
You can get the date displayed in the top bar by using
gnome-tweak-tool
. First open up a terminal with ctrl+alt+t and install the tweak tool withAfter that you can start it from the application selector (there the name is just tweaks) and navigate inside the tweak tool to the tab for 'Top Bar' and activate Date and Seconds (see screen-shot).
Although this might be the easiest approach for the casual user there's another method which works. By issuing the following terminal command you can set the same:
By replacing
set
withget
you can ask the system to give you the actual settings. Example: