Skip to content

Commit

Permalink
Update comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyum committed May 26, 2017
1 parent 224c867 commit e7e6e5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pyspark/sql/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,8 @@ def to_timestamp(col, format=None):
@since(1.5)
def trunc(date, format=0):
"""
Returns date truncated to the unit specified by the format.
Returns date truncated to the unit specified by the format or
number truncated by specified decimal places..
:param format: 'year', 'YYYY', 'yy' or 'month', 'mon', 'mm'
Expand Down

0 comments on commit e7e6e5b

Please sign in to comment.