Python Forum
How to get utcnow + 2 hours?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get utcnow + 2 hours?
#1
Hello ,
I have a running code the send to a client current_time
I have notice that it send him time in this way:

current_time=datetime.utcnow().isoformat())
I want to send it gmt +2

Thanks,
Reply


Messages In This Thread
How to get utcnow + 2 hours? - by korenron - Mar-01-2021, 02:30 PM
RE: How to get utcnow + 2 hours? - by DeaD_EyE - Mar-01-2021, 03:12 PM
RE: How to get utcnow + 2 hours? - by korenron - Mar-01-2021, 03:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  MatplotibTicks every 24 hours TamP 4 1,229 Oct-04-2022, 04:08 PM
Last Post: deanhystad
  Hello all! need help. calculating OT hours. no1up 5 1,576 Jul-30-2022, 10:00 PM
Last Post: rob101
  Py script that triggers ever 3 hours, but only between 9:15 am to 3:30 pm, Mon to Fri Pymod 2 1,878 Jun-30-2021, 05:14 PM
Last Post: Larz60+
  Need to add hours min and seconds tester_V 5 3,174 Jun-02-2020, 05:29 PM
Last Post: tester_V

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020