maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] epoch-calc for N900 (https://talk.maemo.org/showthread.php?t=91713)

ade 2013-11-02 14:16

[Announce] epoch-calc for N900
 
1 Attachment(s)
As my search for a native unix time converter app gave no hits... I decided to create one myself.

Features:
  • convert unix seconds to local time and GMT time
  • convert local time to unix seconds
  • copy unix time to clipboard
  • show current unix/local/GMT time
  • background info in help page
  • 24h and 12h display support

epoch-calc can be found in extras-devel.

Native version for SailfishOS can be found here: https://openrepos.net/content/ade/epoch-calc

n900hacker 2013-11-02 14:28

Re: [Announce] epoch-calc for N900
 
Thank you! I really needed this kind of app, really useful for me!

peterleinchen 2013-11-02 14:39

Re: [Announce] epoch-calc for N900
 
Yeah, now I will even forget about that
Quote:

~ $ date +%s
1383402937
~ $ date -d $(date +%s)
Wed Dec 11 05:41:00 CET 2019

~ $ date -D %s -d $(date +%s)
Sat Nov 2 15:58:51 CET 2013
~ $ date -d @$(date +%s)
Sat Nov 2 15:58:51 CET 2013
~ $ date -ud @$(date +%s)
Sat Nov 2 14:59:02 UTC 2013
~ $
even faster! :(

Nice thing, no need for online converters anymore. :D
Thanks.

sixwheeledbeast 2013-11-02 22:28

Re: [Announce] epoch-calc for N900
 
Another useful tool like rwx-calc.
Thank you, installing now...

pichlo 2013-11-03 07:51

Re: [Announce] epoch-calc for N900
 
Yes, a nifty little app. Thanks, ade, this may come rather useful. Even having to pull 5MB worth of libraries to install a 10kB utility is worth it :)

I have a small "bugette" to report. In Local time, it says 2013-11-03 07:48:04 BST (British Summer Time) even though it is already winter time. Tome zone in my settings is GMT+0 and indeed, your app correctly shows the same values for Local and GMT.

ade 2013-11-03 09:47

Re: [Announce] epoch-calc for N900
 
Thanks for reporting. I also had a wrong current local timezone (CEST instead of CET), but failed to notice that.

Must be fixed in version 0.0.1-2 though.

pichlo 2013-11-03 11:06

Re: [Announce] epoch-calc for N900
 
Yes, 0.0.1-2 is fine. Thanks, that was quick!

sixwheeledbeast 2013-11-03 12:19

Re: [Announce] epoch-calc for N900
 
Quote:

Originally Posted by pichlo (Post 1384038)
I have a small "bugette" to report. In Local time, it says 2013-11-03 07:48:04 BST (British Summer Time) even though it is already winter time.

You beat me to it :)

The only other small bug is with 12 hour clock.
The 12 on the hour side is at the top of the list.

Also switching between 12 hour and 24 hour clock doesn't update the time or the time selector until you have used it once.

ade 2013-11-03 13:37

Re: [Announce] epoch-calc for N900
 
Quote:

Originally Posted by sixwheeledbeast (Post 1384086)
You beat me to it :)

The only other small bug is with 12 hour clock.
The 12 on the hour side is at the top of the list.

I don't think so..? I assume you are testing in AM/PM mode in this case. Then that is correct. In 24h mode, "00" should be on top.

Quote:

Also switching between 12 hour and 24 hour clock doesn't update the time or the time selector until you have used it once.
That is true, but I did not want to make it too fancy. Besides, what are the odds you are using this app and you suddenly want to switch from 24h to 12h notation :rolleyes:? You had a case with the worldclock replacement, as it is used more often and the change can be done from within that program.

By the way: it is also not possible to select seconds in the time picker. That is the limitation of the default QMaemo5timePickSelector I used. If you set the unix seconds, you will see the corresponding seconds in the GMT time display below the time picker.

sixwheeledbeast 2013-11-03 15:38

Re: [Announce] epoch-calc for N900
 
Quote:

Originally Posted by ade (Post 1384090)
I don't think so..? I assume you are testing in AM/PM mode in this case. Then that is correct.

Yes, AM/PM or 12 hour clock has the list "12,1,2,3,4,5,6,7,8,9,10,11"

Quote:

Originally Posted by ade (Post 1384090)
That is true, but I did not want to make it too fancy. Besides, what are the odds you are using this app and you suddenly want to switch from 24h to 12h notation :rolleyes:?

Agreed.

ade 2013-11-03 15:52

Re: [Announce] epoch-calc for N900
 
Quote:

Originally Posted by sixwheeledbeast (Post 1384101)
Yes, AM/PM or 12 hour clock has the list "12,1,2,3,4,5,6,7,8,9,10,11"

And that is how it should behave. Try the worldclock (replacement), (c/q)alendar, alarmed or any other tool...

I might change the mixture of 12h and 24h currently displaying when 12h is active (make all times use 12h notation then).

Edit:
Version 0.0.1-3:
* Added bugtracker URL
* Use of 12h or 24h format in every time indicator
Version 0.0.1-4:
* fixed: small period in am/pm indication was wrong

sixwheeledbeast 2014-01-05 11:51

Re: [Announce] epoch-calc for N900
 
Been a happy user for a while with no issues. Are there plans for further development or promotion to extras-testing?

ade 2014-01-05 16:11

Re: [Announce] epoch-calc for N900
 
Quote:

Originally Posted by sixwheeledbeast (Post 1403945)
Been a happy user for a while with no issues. Are there plans for further development or promotion to extras-testing?

No immediate plans for further development.

Let's see if the userbase/willingness to vote is large enough to promote it to extras-testing. Seems a challenge these days
(just finished a round of voting for packages I use and waiting for promotion myself).

You can give your vote for epoch-calc here.

peterleinchen 2014-01-05 16:34

Re: [Announce] epoch-calc for N900
 
Quote:

Originally Posted by ade (Post 1404022)
You can give your vote voor epoch-calc

Fallen back to mother tongue (as it sounds very similar)? ;)

Just voted.
And gave it for some reason 2 (two) thumbs down. But could correct it. :)

ade 2014-01-15 18:44

Re: [Announce] epoch-calc for N900
 
Yay, promoted to extras-testing!

Thanks to all voters.

pichlo 2014-11-18 21:11

Re: [Announce] epoch-calc for N900
 
A feature request: an option to accept a hexadecimal epoch number.

I found epoch-calc extremely useful today to make sense of some logs and realized how lucky I was that the logs did not use hexadecimal numbers. Not that it would make much sense but some people like all sorts of weird things) :)

ade 2014-11-19 08:39

Re: [Announce] epoch-calc for N900
 
Hmm, I like to look at it the other way around. Why go through the trouble of changing it, if there is no use case?
Like you said, I have never seen unix seconds logging in hexadecimal, octal or even binary form. And then there is always the scientific calculator to the rescue.

P.s. there is an epoch-calc sailfish version for your Jolla (https://openrepos.net/content/ade/epoch-calc).

pichlo 2014-11-19 12:05

Re: [Announce] epoch-calc for N900
 
OK, you've convinced me :)


All times are GMT. The time now is 11:12.

vBulletin® Version 3.8.8