My dear friends here, all i want is get ` LMT+8:06:00` from the output of tz1 `<DstTzInfo 'Asia/Shanghai' LMT+8:06:00 STD>`

Shall we get back to the main point?

If you are interested in it ,please say yes or no ,and how to do that ?


import pytz,datetime
tz1 = pytz.timezone('Asia/Shanghai')
tz1
<DstTzInfo 'Asia/Shanghai' LMT+8:06:00 STD>
>>> str(tz1)
'Asia/Shanghai'

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to