Skip to content

Instantly share code, notes, and snippets.

@brunobord
Created October 15, 2013 15:24
Show Gist options
  • Save brunobord/6993365 to your computer and use it in GitHub Desktop.
Save brunobord/6993365 to your computer and use it in GitHub Desktop.
import parsedatetime as pdt
c = pdt.Constants()
p = pdt.Calendar(c)
result = p.parseDate("15/10/2013")
# time.struct_time(tm_year=2013, tm_mon=10, tm_mday=15, tm_hour=17, tm_min=22, tm_sec=55, tm_wday=1, tm_yday=288, tm_isdst=1)
p.parseDate('01/10/2013')
# 2013, 1, 10, 17, 23, 13, 1, 288, 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment