Skip to content

Commit

Permalink
Fixing indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0FFF committed Sep 1, 2015
1 parent 610cb3f commit cd63eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ def can_convert(self, obj):
def convert(self, obj, gateway_client):
Timestamp = JavaClass("java.sql.Timestamp", gateway_client)
seconds = (calendar.timegm(obj.utctimetuple()) if obj.tzinfo
else time.mktime(obj.timetuple()))
else time.mktime(obj.timetuple()))
return Timestamp(int(seconds) * 1000 + obj.microsecond // 1000)

# datetime is a subclass of date, we should register DatetimeConverter first
Expand Down

0 comments on commit cd63eb0

Please sign in to comment.