# 2038 Problem 用Python ``` import time def to_time(pp): print('Decimal:', pp) print('Binary:', bin(pp)) ltime = time.localtime(pp) out = time.strftime("%Y-%m-%d %H:%M:%S", ltime) print('Date:', out) time_string = "01/19/2038, 11:14:06" result = time.strptime(time_string, "%m/%d/%Y, %H:%M:%S") problem = int(time.mktime(result)) to_time(problem) for i in range(3): print('-' * 50) problem += 1 to_time(problem) ``` 結果 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up