These are chat archives for BernieenJos/weetikveel

5th
Jul 2015
JosvanderSpek
@JosvanderSpek
Jul 05 2015 17:20


class Person:
    def __init__(self, name, number, days_until, age):
        self.name = name
        self.number = number
        self.days_until = days_until
        self.age = age

class WOP():
    name = oldest_people[-1]
    number = oldest_people.index(name) + 1
    def __init__(self, Birthday):
        age = 115    
        def days_until(self, Birthday):
            daysTillBirthday = m.ceil((time.mktime(time.strptime("%i 07 06"%(nextBirthday + Birthday - 116),"%Y %m %d")) - now)/86400.0)
            return daysTillBirthday
        self.days_until = days_until(self, Birthday)
        self.age = Birthday

Jeanne         = Person(oldest_people[0], oldest_people.index(oldest_people[0]) + 1, daysTillJC, 122)
Sarah        = Person(oldest_people[1], oldest_people.index(oldest_people[1]) + 1, daysTillSK, 119)
Lucy             = Person(oldest_people[2], oldest_people.index(oldest_people[2]) + 1, daysTillLH, 117)
Marie_Louise= Person(oldest_people[3], oldest_people.index(oldest_people[3]) + 1, daysTillMLM, 117)
Misao       = Person(oldest_people[4], oldest_people.index(oldest_people[4]) + 1, daysTillMO, 117)
Maria       = Person(oldest_people[5], oldest_people.index(oldest_people[5]) + 1, daysTillMC, 116)
Gertrude    = Person(oldest_people[6], oldest_people.index(oldest_people[6]) + 1, daysTillGW, 116)
Tane        = Person(oldest_people[7], oldest_people.index(oldest_people[7]) + 1, daysTillTI, 116)
Elizabeth   = Person(oldest_people[8], oldest_people.index(oldest_people[8]) + 1, daysTillEB, 116)
Besse       = Person(oldest_people[9], oldest_people.index(oldest_people[9]) + 1, daysTillBC, 116)
Jiroemon    = Person(oldest_people[10], oldest_people.index(oldest_people[10]) + 1, daysTillJK, 116)
Jeralean    = Person(oldest_people[11], oldest_people.index(oldest_people[11]) + 1, daysTillJT, 116)
;)
Dit bedoelde je natuurlijk ;)