What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-10 22:34:02
get unadjusted stock data
from datetime import datetime import json from urllib.parse import urlencode from urllib.request import urlopen def gethistory(symbol, start=None, end=None): # Return 3 tuples (quotes, dividends and splits) with data from start # to end datetimes ... Add solution -
Other 2021-09-10 14:29:01
Network Scanner #2
import os import platform from datetime import datetime net = input("Enter the Network Address: ") net1= net.split('.') a = '.' net2 = net1[0] + a + net1[1] + a + net1[2] + a st1 = int(input("Enter the Starting Number: ")) en1 = int(... Add solution -
Python 2021-09-09 14:23:02
unix to date python
>>> from datetime import datetime >>> ts = int("1284101485") # if you encounter a "year is out of range" error the timestamp # may be in milliseconds, try `ts /= 1000` in that case >>> print(datetime.utcfrom... Add solution -
Python 2021-09-07 19:52:01
pytz
>>> from datetime import datetime, timedelta >>> from pytz import timezone >>> import pytz >>> utc = pytz.utc >>> utc.zone 'UTC' >>> eastern = timezone('US/Eastern') >>> eastern.zone 'US/Easte... Add solution