Reply
Thread Tools
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#1
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.
 
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#2
Originally Posted by rotoflex View Post
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...
 

The Following 2 Users Say Thank You to Wikiwide For This Useful Post:
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#3
Originally Posted by rotoflex View Post
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/
 

The Following 2 Users Say Thank You to reinob For This Useful Post:
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#4
Originally Posted by reinob View Post
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...
 

The Following User Says Thank You to Wikiwide For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 18:53.