http://www.byte.com/documents/s=8880/byt1062182129207/0901_laird.html そのまんま。
1 2 3 4 5 6 7 8 | #!/usr/bin/env python2.3 import datetime birthday = datetime.date(1976, 10, 2) today = datetime.date.today() print "%d days from your birth." % (today - birthday).days |
