diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-12 23:06:50 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-12 23:06:50 +0800 |
| commit | 6c47b43925977fd203b82140bc1e6fd46765aecf (patch) | |
| tree | dd70ec2ea96053ffa9929499a5dcae0c445f673c /services | |
| parent | 9259c16c08d2875644f16a9fd6e9ae664d392e82 (diff) | |
timedate
Diffstat (limited to 'services')
| -rw-r--r-- | services/TimeDate.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/services/TimeDate.qml b/services/TimeDate.qml new file mode 100644 index 0000000..ff9343b --- /dev/null +++ b/services/TimeDate.qml @@ -0,0 +1,15 @@ +pragma Singleton + +import Quickshell +import QtQuick + +Singleton { + id: root + readonly property string time: Qt.formatDateTime(clock.date, "hh:mm:ss") + readonly property string date: Qt.formatDateTime(clock.date, "dddd dd/MM") + + SystemClock { + id: clock + precision: SystemClock.Seconds + } +} |
