Clock: seconds (time display)
Just made ntp work, but noticed that I can't see seconds. Is there any way far from Android to display the seconds?
We have moved to a new Sailfish OS Forum. Please start new discussions there.
I just investigated another idea, that needs programing skills:
In Terminal app (or via SSH -> more comfortable) have a look at the files
In the first file the updateFrequency has to be changed. Without knowing what to put there and if it's even possible you could try 'WallClock.Second'.
In the second file the 1st Text {…}
(right after layoutDirection
) seems to create the text for the clock. For 24h format the line Format.formatDate(time, Format.TimeValueTwentyFourHours)
has to be altered, for 12h format it's the code below. I guess it's a matter of appending the seconds to the string result
before returning it. Seconds could be got with time.getSeconds()
.
Always backup the files before modifying them!
I did not try it, but it looks promising!
Edit: I tried a simple approach: Alter the first file as suggested and then in the second file replace the corresponding line with return Format.formatDate(time, Format.TimeValueTwentyFourHours) + ":" + time.getSeconds()
. It adds Seconds to the clock (if in 24h mode) but it also adds seconds to alarms. :D I guess there has to be done more but obviously it's possible.
Hey, that's nice. Good idea to do it in the clock app, my idea was to have it on the lock screen, but this is better.
I made the font half size as original 124/720 * screen.width
and added the leading zero in ClockItem.qml:
if (timeFormatConfig.value === "24") {
var sekunden = time.getSeconds()
if (sekunden < 10) {
sekunden = "0" + sekunden
}
return Format.formatDate(time, Format.TimeValueTwentyFourHours) + ":" + sekunden
}
I like it! Thank you!
Robomike ( 2015-02-19 21:31:58 +0200 )editI tried editing Clock.qml and ClockItem.qml. However, I found ClockItem.qml in the folder ...jolla-clock/common (Saimaa/2.0.0.10). It's a nice possibility, but I wouldn't want to have seconds displayed on alarms. This solution doesn't either update seconds on the clock app cover, just once per minute. Any suggestions how to achieve these things?
TomC ( 2015-11-19 10:00:29 +0200 )editSeconds added to lockscreen clock (for Jolla1)
View: https://openrepos.net/content/markkyboy/patch-seconds-lockscreen-clock
Direct Download: https://openrepos.net/sites/default/files/packages/1290/sailfishos-patch-seconds-lockscreen-clock-0.1-1.noarch.rpm
Thanks @Jordi - Sorry chap, I have no idea about changing the operator name, probably best to contact the original author of the application and see if they can help.
Spam Hunter ( 2016-09-16 11:31:39 +0200 )edit@Jordi - Gotcha, I see your initial confusion now. Yep, I left Orange years ago and joined Giffgaff, one of the best financial moves I have made regarding network providers.
Spam Hunter ( 2016-09-16 14:46:40 +0200 )editThere is a native Jolla application called "Swiss Clock" on openrepos.net / Warehouse. It shows an large analog clock (including seconds) both fullscreen and on the cover. I usually have it running to allow me to quickly glance at the time. :)
Other solution: wall clock patch
(Does not conflict with lockscreen analog clock)
This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2015-02-19 16:27:43 +0200
Seen: 2,042 times
Last updated: Sep 16 '16
option NTP for automatic time update
The clock is not updated during a call. [not relevant]
[BUG] Stopwatch seconds shown wrong [released]
[BUG] Clock time changes by itself
Clock time wrong after a crash / random shut down
[Bug] Timer not updated when peeking
Bug: Sometimes peeking doesn't show clock/battery etc. [duplicate]
display sleep after "never" option ie. "display always on" is needed
I would like the option to have seconds displayed on the clock on lock screen and home screen, not just when opening the clock app. Is that possiblefor a user to fix, or woult it have to be included in an OS update?
TomC ( 2015-11-19 10:03:58 +0200 )editSailfish X clock app doesn't seem to have seconds -- I also would like to see seconds so that I can separate e.g. 20:29:10 and 20:29:50 from each other. In 40 seconds (for this example) one can do guite a lot...
too ( 2018-03-27 19:49:56 +0200 )edit