February 10, 2010

Slow, but steady

191 lb this morning. That makes 29 lb in 112 days / 3 months, 20 days.  Not as good as I'd like, but not bad either.

Also, I'm lazy, and used this site to do the latter calculation.  I was pondering the problem of counting the days between a pair of dates and realized that it might make for a handy widget... and realized someone else had likely already done it.  Bing confirmed it for me.

Posted by: leoncaruthers at 08:24 AM | Comments (2) | Add Comment
Post contains 79 words, total size 1 kb.

1 If you'll permit me to demonstrate some simple Python code for doing this calculation, just type "python" to fire up your interactive Python session.

To calculate the number of days:

>>> from datetime import date
>>> print date(2010,2, - date(2009,10,19)
112 days, 0:00:00

You didn't mention the starting date in your post, so I used this to find the date you started measuring from:

>>> from datetime import date, timedelta
>>> print date(2010,2, - timedelta(112)
2009-10-19

Posted by: brousch at February 10, 2010 11:43 AM (5EbLC)

2 Woo, more spam!

Posted by: leoncaruthers at August 15, 2011 08:00 AM (mzYNQ)

Hide Comments | Add Comment

Comments are disabled. Post is locked.
13kb generated in CPU 0.07, elapsed 0.1226 seconds.
57 queries taking 0.1003 seconds, 111 records returned.
Powered by Minx 1.1.6c-pink.