EnglishРусский  
 Share/Save/Bookmark
 

days

The number of days between two dates.

func int days (
   datetime left,
   datetime right
)

Parameters

left The first date for comparison.
right The second date for comparison.

Return value

Returns the number of days between two dates. If the first date is greater than the second one, the return value will be negative.

Related links

Source

Edit