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.


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

vBulletin® Version 3.8.8