time_strings.lua

This file contains some global time naming functions for uniform translations.

format_seconds(seconds)
Parameters

seconds (An unsigned integer) – number of seconds

Returns a localized string to tell the time in seconds with the proper plural form. :returns: “1 second”, or “20 seconds” etc.

format_minutes(minutes)
Parameters

minutes (An unsigned integer) – number of minutes

Returns a localized string to tell the time in minutes with the proper plural form. :returns: “1 minute”, or “20 minutes” etc.

format_minutes_seconds(minutes, seconds)
Parameters
  • minutes (An unsigned integer) – number of minutes

  • seconds (An unsigned integer) – number of seconds

Returns a localized string to tell the time in minutes and seconds with the proper plural form. :returns: “1 minute and 20 seconds” etc.