STEEM POWER retention ratio of top 50 witnesses

by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/steem-power-retention-ratio-of-top-50-witnesses Hello, this is @joviansummer(witness: @jswit). Some time ago there was a bit of discussion on discord witness chanel about witnesses' power-down/cashing-out. So out of curiosity I just checked current ratio of witnesses' own STEEM POWER(VESTS) and all-time producer reward(VESTS). The ratio is calculated by the following simple formula: ratio(%) = account's own SP(MV) / all-time producer reward SP(MV) * 100% Ratio value less than 100% indicates power-down. If witness does additional power-up or gets other types of reward(e.g., curation reward), the ratio may exceed 100%. This does not take witness' other accounts into consideration. All-time producer reward data is from @steemchiller's SDS API. Here is the result: rank account own_sp prod_sp ratio 1 justyy 2188.411MV 1284.2MV 170.41% 2 steemchiller 982.134MV 124...

파이썬에서 어제, 오늘, 내일 날짜 구하기

by joviansummer
original STEEMIT post: https://steemit.com/blog/@joviansummer/4yeb8j


파이썬에서 날짜를 구하는 방법입니다. datetime 모듈을 이용합니다.

먼저 오늘 날짜입니다.

import datetime
# 오늘 날짜를 구해서 today에 할당
today = datetime.date.today()
print(today)

2021-06-26

날짜 표시 형식을 지정하고 싶으면 아래와 같이 할 수 있습니다.

print(today.strftime("%Y.%m.%d"))

2021.06.26

어제 또는 내일 날짜는 오늘로부터 하루가 차이나는 값을 구하는 방식으로 계산하며 timedelta()를 활용합니다.

import datetime
from datetime import timedelta
today = datetime.date.today()
# 어제 날짜: 오늘 - 1일
yesterday = today - timedelta(days=1)
print(yesterday)

2021-06-25

# 내일 날짜: 오늘 + 1일
tomorrow = today + timedelta(days=1)
print(tomorrow)

2021-06-27

# 모레 날짜: 오늘 + 2일 
day_after_tomorrow = today + timedelta(days=2)
print(day_after_tomorrow)

2021-06-28

Comments

Popular posts from this blog

스티미언의 영향력 지수 계산

jsup/avle code update - you don't have to write post everyday

jsup/avle 보팅 코드 갱신 - 1일1포스팅 강박에서 벗어나기