SIMPOL Documentation

TIMESTR()

Description

This function implements the TIME$() function for SBL compatibility. The return value will be either the empty string (""), some string containing the word ".nul" one or more times, or the time formatted as a string based on the format string passed. The supported pattern characters are:

  • hh – Hours without leading zeros (12-hour clock)

  • 0h – Hours with leading zeros (12-hour clock)

  • mm – Minutes with leading zeros

  • ss – Seconds with leading zeros

  • ss.s – Seconds with leading zeros, a decimal point, and the milliseconds padded with zeros

  • a – 12-hour clock values with am or pm designator

If the time format begins with a | character, then it is using a newer extended time format and will be passed to the extTIMESTR() function for processing.

Prototype

TIMESTR ( time t, string sFormat )

Parameters

ParameterDefault valueType nameDescription
tNonetime
sFormatNonestring