2
내 모델장고 날짜
create = models.DateTimeField(auto_now_add=True)
방법이 분야에서 유닉스 시간을 얻는 방법?
datetime.datetime.timestamp()
는하지만 여기
내 모델장고 날짜
create = models.DateTimeField(auto_now_add=True)
방법이 분야에서 유닉스 시간을 얻는 방법?
datetime.datetime.timestamp()
는하지만 여기
간단한 파이썬은 datetime.datetime 예를 자체 생성 int로해야합니다. 당신이 할 수있는 2.X
보다 파이썬
. 파이썬 3.3 이상
를 들어
my_model = MyModel()
int(my_model.create.strftime('%s'))
당신은 할 수
my_model = MyModel()
my_model.create.timestamp()