Skip to content

Commit

Permalink
Update c_timestamp.pyx
Browse files Browse the repository at this point in the history
Added missing dots
  • Loading branch information
ShaharNaveh authored Nov 21, 2019
1 parent ef2daec commit d1b17a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/_libs/tslibs/c_timestamp.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ cdef class _Timestamp(datetime):
result = f'{self.hour:02d}:{self.minute:02d}:{self.second:02d}'

if self.nanosecond != 0:
result += f'{self.nanosecond + 1000 * self.microsecond:09d}'
result += f'.{self.nanosecond + 1000 * self.microsecond:09d}'
elif self.microsecond != 0:
result += f'{self.microsecond:06d}'
result += f'.{self.microsecond:06d}'

return result

Expand Down

0 comments on commit d1b17a4

Please sign in to comment.