How to use tzutc()

前端 未结 1 2061
刺人心
刺人心 2021-02-05 05:53

What am I missing, how do I get this function to work?

import dateutil.parser
import datetime

my_date = datetime.datetime(2000, 1, 1, 0, 0, 0, 000000, tzinfo=tz         


        
1条回答
  •  猫巷女王i
    2021-02-05 06:26

    You did not import it:

    from dateutil.tz import tzutc
    

    0 讨论(0)
提交回复
热议问题