in C# I would convert all the time to DateTime.Now.Tick; using this you can then do logical comparison and even convert the tick back to date time. I had once used this trick for calculating leave days and eliminating weekends and public holidays from counting leave days.
 
Let me know if you need the actual algorithm in C#
 
regards,
Paul Roy.


On Thu, May 2, 2013 at 10:37 AM, Francis Njenga <korefn@gmail.com> wrote:
A timestamp will have all these details and you can extract the relevant details from it.
I.e. datetime has both date and time. You can use the time or date where relevant.
This is the essence of a timestamp.


On Thu, May 2, 2013 at 10:31 AM, Peter Karunyu <pkarunyu@gmail.com> wrote:
@Lawi, does the start times change per day or are they sorta fixed at a preset time?

Say, every day at 0600Hrs is the start, and every day at 1800Hrs is the end

_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke



--
Kore Francis Njenga
Running and Walking are only breaths apart.

_______________________________________________
skunkworks mailing list
skunkworks@lists.my.co.ke
------------
List info, subscribe/unsubscribe
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------

Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke



--
"Change is slow and gradual. It requires hardwork, a bit of
luck, a fair amount of self-sacrifice and a lot of patience."

Roy.