timeUntilInWords()
Description
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.
Function Syntax
timeUntilInWords(toTime [, includeSeconds, fromTime ])
Parameters
| Parameter | 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. |
Examples
<cfset aLittleAhead = Now() + 30>
<cfoutput>#timeUntilInWords(aLittleAhead)#</cfoutput>
