Skip to content

Instantly share code, notes, and snippets.

@selva86
Created June 7, 2021 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save selva86/29138717ec7261420fab0b20ecb10645 to your computer and use it in GitHub Desktop.
Save selva86/29138717ec7261420fab0b20ecb10645 to your computer and use it in GitHub Desktop.
# 1. Parse the following strings to datetime.
s1 = "2010 Jan 1"
s2 = '31-1-2000'
s3 = 'October10, 1996, 10:40pm'
# 2. How many days has it been between the end of first world war to the beginning of second world war?
"11 November 1918" to "1 september 1939"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment