Pass in a date to this method, and it will return a string describing the approximate time difference between the current date and that date.
Name | Type | Required | Default | Description |
---|---|---|---|---|
toTime | date | Yes | Date to compare to. | |
includeSeconds | boolean | No | false | Whether or not to include the number of seconds in the returned string. |
fromTime | date | No | [runtime expression] | Date to compare from. |
timeUntilInWords(toTime [, includeSeconds, fromTime ]) <cfset aLittleAhead = Now() + 30> <cfoutput>#timeUntilInWords(aLittleAhead)#</cfoutput>