# 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?

edit retag close delete

2

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?

( 2015-11-19 10:03:58 +0300 )edit

Sailfish 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...

( 2018-03-27 19:49:56 +0300 )edit

Sort by » oldest newest most voted

I just investigated another idea, that needs programing skills:

In Terminal app (or via SSH -> more comfortable) have a look at the files

• /usr/share/jolla-clock/pages/main/Clock.qml
• /usr/share/jolla-clock/pages/main/ClockItem.qml

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.

more

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!

( 2015-02-19 21:31:58 +0300 )edit

I 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?

( 2015-11-19 10:00:29 +0300 )edit

Seconds added to lockscreen clock (for Jolla1)

more

Good one! Thanks for this. BTW, how do you change the operator name? The patch in Openrepos is marked as obsolete and does not work anymore.

( 2016-09-16 08:34:38 +0300 )edit

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.

( 2016-09-16 11:31:39 +0300 )edit

Ah, sorry, I didn't know that "giffgaff" was an operator name!

( 2016-09-16 14:36:38 +0300 )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.

( 2016-09-16 14:46:40 +0300 )edit
1

Thanks, Markkyboy!

( 2016-09-17 00:19:16 +0300 )edit

• Enable developer mode,
• open Terminal app,
• write date and hit Enter.

:D

Edit: I'd also like to be able to see seconds in clock app.

more

There 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. :)

more

Nice app, thanks for hint!

( 2015-02-19 21:24:17 +0300 )edit

Other solution: wall clock patch

(Does not conflict with lockscreen analog clock)

more