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
orpm
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
,
string t
)
sFormat
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
t | None | time | |
sFormat | None | string |