Miscellaneous
timeUntilInWords()
Signature
Section titled “Signature”timeUntilInWords() — returns any
Description
Section titled “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.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
toTime | date | yes | — | Date to compare to. |
includeSeconds | boolean | yes | false | Whether or not to include the number of seconds in the returned string. |
fromTime | date | yes | [runtime expression] | Date to compare from. |
Examples
Section titled “Examples”timeUntilInWords(toTime [, includeSeconds, fromTime ]) <cfset aLittleAhead = Now() + 30> <cfoutput>#timeUntilInWords(aLittleAhead)#</cfoutput>