I have run into the wall and my brain can't cope anylonger
I think I need some help...my maths today is not working nor is my locigal thinking
I am adding a timer-event in the future which must be expressed in ticks without milliseconds. I need to set a Start-Date and a Start-Time.
For example:
Start-Day: Sunday Feb 12, 2012
Start-Time: 23:00
Using a online-converter, Sunday Feb 12, 2012 (23:00) would become 1329084000
which can be calculated as follows:
Sunday Feb 12, 2012 (00:00) = 1329001200
23 hours = 82800 (3600 seconds * 23 hours)
1329001200 + 82800 = 1329084000
Those are my reference-data so I know how the ticks should look like.
I am getting the date and the hours using the Dialogs-library.
User-inputs:
date: 12/02/2012
hour: 23:00:00
Anyone who is willing to show me the code necessary to obtain 1329084000 ?
Thanks!