I want to suggest rewriting the (because i can't make deepcopy GXDateTime: missing Offset)
class GXTimeZone:
def __new__(cls, offset):
local_time_delta = datetime.timedelta(minutes=offset)
if offset == 0:
name = "Z"
else:
if offset > 0:
name = "+"
else:
name = "-"
name += str(int(offset / 60)).zfill(2)
name += ":"
name += str(offset % 60).zfill(2)
time_zone = datetime.timezone(local_time_delta, name)
return time_zone
Can you tell me a little bit more about what you want to do? Time zone information is created when the value is read from the meter to kept the meter's time zone information.
Hi,
Hi,
Can you tell me a little bit more about what you want to do? Time zone information is created when the value is read from the meter to kept the meter's time zone information.
BR,
Mikko
I copy objects from several
I copy objects from several servers in one inheritable class. I changing it by widgets and send back. For copy i use copy.deepcopy