import sys import datetime def main(): date = sys.argv[1] date = datetime.datetime.strptime(date, "%Y-%m-%d").date() print(date.toordinal()) if __name__ == "__main__": main()