Update the time in between dates !!

Hello,

I confused with this, i want to find the time count for day to day in a week.

Ex: If suppose we specify some flag setting as 'week' in code. Then it will run for a 'week' in between of time with specific behavior like some print statements, let's say "i'm in week". If it crossed 'week' days then it should say "out from week".
Here 'week' means 7 days (calendar specific).


I have a logic that i could specify this using seconds but is it be right?

1
2
1day -> 24 hr -> 1440 min ->86400sec 
7 day -> 86400sec * 7 


is this make sense ! Thanks
Please do not double post.
http://www.cplusplus.com/forum/general/
Yeah, It was wrong that i did in Genereal c++ programming,
But this question will applicable to linux/unix also so i don't see any option to merge the both here :(
Topic archived. No new replies allowed.