Jul-03-2023, 10:09 AM
(Jul-02-2023, 10:59 PM)tester_V Wrote: ok. I'm staying with the UTC timestamp. UTC timestamp has no time zone.Then why are you adding a timezone,just add 24 hour to timestamp if that 's what you need.
from datetime import datetime, timedelta # They make this timestamp in Kuala_Lumpur timestamp = datetime.now().timestamp() # On your side add 24 hour to_date = datetime.fromtimestamp(timestamp) add_24 = to_date + timedelta(hours=24) print(to_date) print(add_24)
Output:2023-07-03 12:21:18.615738
2023-07-04 12:21:18.615738