This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bson.tz_util import utc | |
from datetime import datetime, timedelta | |
# This file is to impliment date related helper functions | |
# | |
# This is mainly needed because bson uses the javascript date class. | |
# The javascript Date() class represents timestamps in milliseconds. | |
# For some documentation on how Bson, Json, and Date work together, refer to: | |
# http://blog.mongohq.com/from-json-to-bson-and-back/ | |
# |