Last active
August 29, 2015 14:10
-
-
Save jorgebastida/e5db1b7f6c8d1cab7b8e to your computer and use it in GitHub Desktop.
Revisions
-
jorgebastida revised this gist
Dec 5, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,4 +2,4 @@ from datetime import datetime def random_date(start, end): return datetime.fromtimestamp(random.randint(*map(lambda x: int(x.strftime('%s')), (start, end)))) -
jorgebastida revised this gist
Dec 5, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ import random from datetime import datetime def random_date(start, end): return datetime.fromtimestamp(random.randint(*map(int, (start.strftime('%s'), end.strftime('%s'))))) -
jorgebastida created this gist
Dec 5, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ import random from datetime import datetime, timedelta def random_date(start, end): return datetime.fromtimestamp(random.randint(*map(int, (start.strftime('%s'), end.strftime('%s')))))