These are chat archives for BernieenJos/weetikveel

22nd
May 2015
JosvanderSpek
@JosvanderSpek
May 22 2015 02:29

import math as m
import time
import argparse

now = time.time()

# Jeralean Talley

timeJ115 = time.strptime("2014 05 23","%Y %m %d")
years = 115 + m.floor((now - time.mktime(timeJ115))/31536000.0)
seconds = now - -2228213972
minutes = seconds/60.0
hours = minutes/60.0
days = hours/24.0
weeks = days/7.0
secondsJ115 = now - time.mktime(timeJ115)
daysJ115 = m.floor(secondsJ115/86400.0)
daysJoldest = int(m.floor((now - 1428271200)/86400.0))
yearsNow = years + secondsJ115/31536000.0
months = 12*years + secondsJ115/2628000.0
YearsNow = str(round(yearsNow, 3)).rjust(12)
Months = str(round(months, 2)).rjust(12)
Weeks = str(round(weeks, 1)).rjust(12)
AllDays = str(int(days)).rjust(12)
Hours = str(int(hours)).rjust(12)
Minutes = str(int(minutes)).rjust(12)
AllSeconds = str(int(seconds)).rjust(12)
strYears = str('years,').rjust(9)
strMonths = str('months,').rjust(9)
strWeeks = str('weeks,').rjust(9)
strDays = str('days,').rjust(9)
strHours = str('hours,').rjust(9)
strMinutes = str('minutes,').rjust(9)
strSeconds = str('seconds.').rjust(9)

# Jos

timeJos22 = time.localtime(1415570900)
secondsJos22 = now - time.mktime(timeJos22)
daysJos22 = m.floor(secondsJos22/86400.0)
yearsJos = 22
yearsNowJos = yearsJos + secondsJos22/31536000.0
monthsJos = 12yearsJos + secondsJos22/2628000.0
allDaysJos = 365.25
yearsJos + secondsJos22/86400.0
weeksJos = allDaysJos/7.0
hoursJos = 24allDaysJos
minutesJos = 60
hoursJos
allSecondsJos = 60*minutesJos
YearsNowJos = str(round(yearsNowJos, 3)).rjust(12)
MonthsJos = str(round(monthsJos, 2)).rjust(12)
WeeksJos = str(round(weeksJos, 1)).rjust(12)
AllDaysJos = str(int(allDaysJos)).rjust(12)
HoursJos = str(int(hoursJos)).rjust(12)
MinutesJos = str(int(minutesJos)).rjust(12)
AllSecondsJos = str(int(allSecondsJos)).rjust(12)

# Sakari

timeSakari112 = time.strptime("2015 02 05 12", "%Y %m %d %H")
secondsSakari112 = now - time.mktime(timeSakari112)
daysSakari112 = round((secondsSakari112/86400.0), 0)
allDaysSakari = 365.25
weeksSakari = allDaysSakari/7.0
minutesSakari = 60
allSecondsSakari = 60minutesSakari
YearsNowSakari = str(round(yearsNowSakari, 3)).rjust(12)
MonthsSakari = str(round(monthsSakari, 2)).rjust(12)
WeeksSakari = str(round(weeksSakari, 1)).rjust(12)
AllDaysSakari = str(int(allDaysSakari)).rjust(12)
MinutesSakari = str(int(minutesSakari)).rjust(12)
AllSecondsSakari = str(int(allSecondsSakari)).rjust(12)
monthsSakari = 12

# Nelly

timeNelly110 = time.strptime("2015 05 05 12", "%Y %m %d %H")
secondsNelly110 = now - time.mktime(timeNelly110)
daysNelly110 = round((secondsNelly110/86400.0), 0)
yearsNelly = 110
yearsNowNelly = yearsNelly + secondsNelly110/31536000.0
monthsNelly = 12yearsNelly + secondsNelly110/2628000.0
allDaysNelly = 365.25
yearsNelly + secondsNelly110/86400.0
weeksNelly = allDaysNelly/7.0
hoursNelly = 24allDaysNelly
minutesNelly = 60
hoursNelly
allSecondsNelly = 60minutesNelly
YearsNowNelly = str(round(yearsNowNelly, 3)).rjust(12)
MonthsNelly = str(round(monthsNelly, 2)).rjust(12)
WeeksNelly = str(round(weeksNelly, 1)).rjust(12)
AllDaysNelly = str(int(allDaysNelly)).rjust(12)
HoursNelly = str(int(hoursNelly)).rjust(12)
MinutesNelly = str(int(minutesNelly)).rjust(12)
AllSecondsNelly = str(int(allSecondsNelly)).rjust(12)
monthsNelly = 12
yearsNelly + secondsNelly110/2628000.0

# Oldest people

oldest_people = ["Jeanne Calment", "Sarah Knauss", "Lucy Hannah", "Marie-Louise Meilleur", "Misao Okawa", "Maria Capovilla", "Gertrude Weaver", "Tane Ikai", "Elizabeth Bolden", "Besse Cooper", "Jiroemon Kimura"]
Jiroemon100 = time.mktime(time.strptime("1997 04 19", "%Y %m %d"))
daysTill116 = 365 - daysJ115
daysTillJK = 365 - daysJ115 + 54
daysTillBC = 365 - daysJ115 + 100
daysTillEB = 365

oeps
``yolo``
ja zo was 't :p
Oh het is te groot