My static website generator using poole https://www.xythobuz.de
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.md 1.2KB

title: Home parent: main position: 1 flattr: true compat: home

noheader: true

Hi there!

I’m a <!--% from datetime import datetime from datetime import timedelta from calendar import isleap

size_of_day = 1. / 366. size_of_second = size_of_day / (24. * 60. * 60.)

def date_as_float(dt):

days_from_jan1 = dt - datetime(dt.year, 1, 1)
if not isleap(dt.year) and days_from_jan1.days >= 31+28:
    days_from_jan1 += timedelta(1)
return dt.year + days_from_jan1.days * size_of_day + days_from_jan1.seconds * size_of_second

start_date = datetime(1994,1,22,0,0) end_date = datetime.now() difference_in_years = date_as_float(end_date) - date_as_float(start_date)

print int(difference_in_years)

%--> year old software developer from Germany. All of my projects are released as free or open-source software on my Gitea Server, my GitHub profile and here on my website. Have fun!

To receive my latest updates, you can subscribe to the RSS Feed.

Recent Posts and Updates

Show all updates.