Skip to content

Miscellaneous

timeUntilInWords()

timeUntilInWords() — returns any

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.

NameTypeRequiredDefaultDescription
toTimedateyesDate to compare to.
includeSecondsbooleanyesfalseWhether or not to include the number of seconds in the returned string.
fromTimedateyes[runtime expression]Date to compare from.
timeUntilInWords(toTime [, includeSeconds, fromTime ]) <cfset aLittleAhead = Now() + 30>
<cfoutput>#timeUntilInWords(aLittleAhead)#</cfoutput>