timeFormat

Formats a time value using US English time formatting
conventions. If no mask is specified, returns a time value
using the hh:mm tt format. For international time formatting,
see LSTimeFormat.
[mask]
h,hh,H,HH: Hours; m,mm: Minutes; s,ss: Seconds;
l: Milliseconds; t: A or P; tt: AM or PM
"short" = h:mm tt; "medium" = h:mm:ss tt

timeFormat(time [, mask]) → returns String

Member Function Syntax

time.timeFormat([mask])

Argument Reference for the timeFormat function

time

Required: Yes
A date/time value or string to convert Values:
  • now()

mask

Required: No
Masking characters that determine the format Values:
  • short
  • medium
  • long
  • full

Compatibility

ColdFusion:

Member function is available in CF 11+.

Lucee:

Member function is not available.

Fork me on GitHub