Advertisement
Guest User

Untitled

a guest
May 26th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1.  
  2. def change_date(plus_hour=0, plus_day=0):
  3. date = datetime.now().replace(hour=datetime.now().hour + plus_hour, day=datetime.now().day + plus_day)
  4. return date
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement