maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   alarmd time syntax? (https://talk.maemo.org/showthread.php?t=88144)

rotoflex 2012-12-06 09:43

alarmd time syntax?
 
What's the syntax used for assigning a time to an event in slarmd?

I have an event scheduled at 9 p.m. (21:00), & in /var/cache/alarmd/alarm_queue.ini the event's section has alarm_time as 1322362800.

How is 21:00 translated into 1322362800? It's not seconds after midnight.

Wikiwide 2012-12-06 10:02

Re: alarmd time syntax?
 
Quote:

Originally Posted by rotoflex (Post 1301839)
What's the syntax used for assigning a time to an event in slarmd?

I have an event scheduled at 9 p.m. (21:00), & in /var/cache/alarmd/alarm_queue.ini the event's section has alarm_time as 1322362800.

How is 21:00 translated into 1322362800? It's not seconds after midnight.

Quick reply...
1322362800s=367323h
377323h=15305d+3h
15305d~42 years (don't know exactly)
21:00 is 3h before midnight.
Hope it helps.
Best wishes.
__________________
Per aspera ad astra...

reinob 2012-12-06 10:30

Re: alarmd time syntax?
 
Quote:

Originally Posted by rotoflex (Post 1301839)
What's the syntax used for assigning a time to an event in slarmd?

I have an event scheduled at 9 p.m. (21:00), & in /var/cache/alarmd/alarm_queue.ini the event's section has alarm_time as 1322362800.

How is 21:00 translated into 1322362800? It's not seconds after midnight.

The time is stored in standard UNIX/POSIX format ("epoch time"). You can play with it here:

http://www.epochconverter.com/

Wikiwide 2012-12-06 13:32

Re: alarmd time syntax?
 
Quote:

Originally Posted by reinob (Post 1301846)
The time is stored in standard UNIX/POSIX format ("epoch time"). You can play with it here:

http://www.epochconverter.com/

Thank you. So: Unix time, or POSIX time, is a system for describing instances in time, defined as the number of seconds that have elapsed since midnight Coordinated Universal Time (UTC), 1 January 1970, not counting leap seconds.
Best wishes.
__________________
Per aspera ad astra...


All times are GMT. The time now is 19:39.

vBulletin® Version 3.8.8