Skip to content

Global Helpers

timeUntilInWords()

timeUntilInWords() — returns string

Available in: controller, model, mapper, migrator, migration, tabledefinition Category: Date Functions

Returns a string describing the approximate time difference between the current date and the date passed in.

NameTypeRequiredDefaultDescription
toTimedateyesDate to compare to.
includeSecondsbooleannofalseWhether or not to include the number of seconds in the returned string.
fromTimedateno[runtime expression]Date to compare from.