Boost logo

Boost Users :

From: Olaf van der Spek (olafvdspek_at_[hidden])
Date: 2006-07-27 09:24:14


Hi,

I'm currently using the following code to calculate the number of
seconds until the next month. I'm wondering whether there's an easier
way.

date d(day_clock::universal_day());
d += months(1);
cout << duration2a((ptime(date(d.year(), d.month(), 1)) -
second_clock::universal_time()).total_seconds()) + " until ladders
reset" << endl;
return 0;


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net