def nsdate_from_python_date(date):
# TODO: Find a way to get a timestamp from python date without the calendar module
date_as_tuple = date.timetuple()
timestamp = pysyscal.timegm(date_as_tuple)
return NSDate.alloc().initWithTimeIntervalSince1970_(timestamp)
评论列表
文章目录