GentBG x PUSSTEEM - burning both STEEM and PUSS

Image
by joviansummer original STEEMIT post: https://steemit.com/blog/@joviansummer/gentbg-x-pussteem-burning-both-steem-and-puss Hello, this is @joviansummer(witness: @jswit), developer of GentBG project. I registered @gentbg account to PUSSTEEM about a week ago and donated some of my own PUSS token to @gentbg's EPUSS account. Now, @gentbg will burn STEEM and EPUSS at the same time. PUSSTEEM's boosting upvotes will help increasing baseline burning significantly. @gentbg's SP reward is delegate to @jsup to get automated upvotes, forming a baseline burning of liquid reward independent of other people's upvotes. Some may argue 100%(both liquid and SP reward) burning is much better, but I chose this approach to prevent @gentbg from becoming a spamming account. Constantly asking for upvotes via mentioning and commenting every week may eventually become a big annoyance to curators. That being said, anyone is welcome to participate in countering STEEM inflation by giving upvotes ...

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

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포스팅 강박에서 벗어나기